Skip to content

Commit

Permalink
Make test also assert the gems that it should load
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed May 18, 2019
1 parent 44b93ae commit a637592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/rubygems/test_require.rb
Expand Up @@ -66,6 +66,7 @@ def test_dash_i_beats_gems
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
Expand Down

0 comments on commit a637592

Please sign in to comment.