mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Make test also assert the gems that it should load
https://github.com/rubygems/rubygems/commit/a6375920bf
This commit is contained in:
parent
bb2a65800d
commit
d4feeb1936
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ class TestGemRequire < Gem::TestCase
|
||||||
assert_require 'test_gem_require_a'
|
assert_require 'test_gem_require_a'
|
||||||
assert_require 'b/c' # this should be required from -I
|
assert_require 'b/c' # this should be required from -I
|
||||||
assert_equal "world", ::Object::HELLO
|
assert_equal "world", ::Object::HELLO
|
||||||
|
assert_equal %w(a-1 b-1), loaded_spec_names
|
||||||
ensure
|
ensure
|
||||||
$LOAD_PATH.replace lp
|
$LOAD_PATH.replace lp
|
||||||
Object.send :remove_const, :HELLO if Object.const_defined? :HELLO
|
Object.send :remove_const, :HELLO if Object.const_defined? :HELLO
|
||||||
|
|
Loading…
Reference in a new issue