Skip to content
Browse files

fix path test

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1815 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent ae97088 commit c09b9553becdd13a49a89d0fee9cfa515039fe8f technomancy committed Jun 24, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/test_gem.rb
View
5 test/test_gem.rb
@@ -279,14 +279,15 @@ def test_self_path_APPLE_GEM_HOME_GEM_PATH
end
def test_self_path_ENV_PATH
- Gem.clear_paths
+ Gem.send :set_paths, nil
path_count = Gem.path.size
path_count -= 1 if defined? APPLE_GEM_HOME
Gem.clear_paths
-
+
ENV['GEM_PATH'] = @additional.join(File::PATH_SEPARATOR)
assert_equal @additional, Gem.path[0,2]
+
assert_equal path_count + @additional.size, Gem.path.size
assert_match Gem.dir, Gem.path.last
end

0 comments on commit c09b955

Please sign in to comment.
Something went wrong with that request. Please try again.