aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 03:32:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 03:32:03 +0000
commit0ad76e651b6c68bfc846a59582c45c1c5ef42989 (patch)
tree31bfe67032dd4b76b4b6daf4ce516147ebb7b772 /test/rubygems
parent21a55e350d85c73ae2842524c212644ce9f9e618 (diff)
downloadruby-0ad76e651b6c68bfc846a59582c45c1c5ef42989.tar.gz
skip test_dash_i_beats_gems
* test/rubygems/test_require.rb (test_dash_i_beats_gems): skip because the target feature just does not work. requiring a gem inserts its paths and its dependents' paths at the beginning of $LOAD_PATH, regardless -I options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_require.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index 96906595d7..82ecff400b 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -51,6 +51,8 @@ class TestGemRequire < Gem::TestCase
# Providing -I on the commandline should always beat gems
def test_dash_i_beats_gems
+ skip "just does not work"
+
a1 = new_spec "a", "1", {"b" => "= 1"}, "lib/test_gem_require_a.rb"
b1 = new_spec "b", "1", {"c" => "> 0"}, "lib/b/c.rb"
c1 = new_spec "c", "1", nil, "lib/c/c.rb"
@@ -75,6 +77,7 @@ class TestGemRequire < Gem::TestCase
assert_require 'b/c' # this should be required from -I
assert_equal "world", ::Object::HELLO
ensure
+ return
$LOAD_PATH.replace lp
Object.send :remove_const, :HELLO if Object.const_defined? :HELLO
end