ruby-changes:25056
From: nobu <ko1@a...>
Date: Sat, 6 Oct 2012 23:26:44 +0900 (JST)
Subject: [ruby-changes:25056] nobu:r37108 (trunk): * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when
nobu 2012-10-06 23:26:29 +0900 (Sat, 06 Oct 2012) New Revision: 37108 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37108 Log: * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when DEFAULT_CONFIG_FILE does not exist. Modified files: trunk/test/openssl/test_config.rb Index: test/openssl/test_config.rb =================================================================== --- test/openssl/test_config.rb (revision 37107) +++ test/openssl/test_config.rb (revision 37108) @@ -21,11 +21,11 @@ end def test_constants - skip "DEFAULT_CONFIG_FILE may return a wrong path on your platforms. [Bug #6830]" if /mswin|mingw|darwin/ =~ RUBY_PLATFORM - assert(defined?(OpenSSL::Config::DEFAULT_CONFIG_FILE)) + config_file = OpenSSL::Config::DEFAULT_CONFIG_FILE + skip "DEFAULT_CONFIG_FILE may return a wrong path on your platforms. [Bug #6830]" unless File.readable?(config_file) assert_nothing_raised do - OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE) + OpenSSL::Config.load(config_file) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/