ruby-changes:13450
From: nobu <ko1@a...>
Date: Sun, 4 Oct 2009 13:54:07 +0900 (JST)
Subject: [ruby-changes:13450] Ruby:r25224 (trunk): * test/rubygems/test_gem.rb (TestGem#test_self_find_files): "."
nobu 2009-10-04 13:53:57 +0900 (Sun, 04 Oct 2009) New Revision: 25224 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25224 Log: * test/rubygems/test_gem.rb (TestGem#test_self_find_files): "." is no longer included in $LOAD_PATH. Modified files: trunk/test/rubygems/test_gem.rb Index: test/rubygems/test_gem.rb =================================================================== --- test/rubygems/test_gem.rb (revision 25223) +++ test/rubygems/test_gem.rb (revision 25224) @@ -266,6 +266,8 @@ def test_self_find_files discover_path = File.join 'lib', 'foo', 'discover.rb' + cwd = File.expand_path('..', __FILE__) + $LOAD_PATH.unshift(cwd.dup) foo1 = quick_gem 'foo', '1' do |s| s.files << discover_path @@ -289,12 +291,14 @@ Gem.searcher = nil expected = [ - File.expand_path('foo/discover.rb', File.dirname(__FILE__)), + File.expand_path('../foo/discover.rb', __FILE__), File.join(foo2.full_gem_path, discover_path), File.join(foo1.full_gem_path, discover_path), ] assert_equal expected, Gem.find_files('foo/discover') + ensure + assert_equal(cwd, $LOAD_PATH.shift) end def test_self_latest_load_paths -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/