ruby-changes:27712
From: nobu <ko1@a...>
Date: Fri, 15 Mar 2013 20:20:46 +0900 (JST)
Subject: [ruby-changes:27712] nobu:r39764 (trunk): * test/rubygems/test_gem_package.rb (test_verify_nonexistent): should
nobu 2013-03-15 20:20:00 +0900 (Fri, 15 Mar 2013) New Revision: 39764 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39764 Log: * test/rubygems/test_gem_package.rb (test_verify_nonexistent): should make no assumptions on system error messages. Modified files: trunk/test/rubygems/test_gem_package.rb Index: test/rubygems/test_gem_package.rb =================================================================== --- test/rubygems/test_gem_package.rb (revision 39763) +++ test/rubygems/test_gem_package.rb (revision 39764) @@ -509,7 +509,7 @@ class TestGemPackage < Gem::Package::Tar https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package.rb#L509 package.verify end - assert_equal 'No such file or directory - nonexistent.gem', e.message + assert_match / -\snonexistent\.gem\z/, e.message end def test_verify_security_policy -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/