summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-03 15:11:14 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 07:35:48 +0900
commitd4feeb19361a4d7addf4779fb6bdc8e8c072093b (patch)
treec13a41fa8dfd905f80cb1ea57b151fded896f96e
parentbb2a65800d857149bbbacace7ed5dfbf7d20ecc2 (diff)
[rubygems/rubygems] Make test also assert the gems that it should load
https://github.com/rubygems/rubygems/commit/a6375920bf
-rw-r--r--test/rubygems/test_require.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index f4b6abdf17..f8e1d3f26e 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -66,6 +66,7 @@ class TestGemRequire < Gem::TestCase
assert_require 'test_gem_require_a'
assert_require 'b/c' # this should be required from -I
assert_equal "world", ::Object::HELLO
+ assert_equal %w(a-1 b-1), loaded_spec_names
ensure
$LOAD_PATH.replace lp
Object.send :remove_const, :HELLO if Object.const_defined? :HELLO