summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_stub_specification.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-20 09:03:37 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-20 09:03:37 +0000
commit43e320ba1b08c32286f0aa1972528c5f25b4a483 (patch)
treede7fdcc12d7625ee8c7e25ffd73a015c651104a5 /test/rubygems/test_gem_stub_specification.rb
parent0242f7ccae800eab5c3ab5f3129b1126ffbb45c3 (diff)
Merge rubygems master(ddbf3203f3857649abe95c73edefc7de7e6ecff4).
It fixed: https://github.com/rubygems/rubygems/issues/2041 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_stub_specification.rb')
-rw-r--r--test/rubygems/test_gem_stub_specification.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_stub_specification.rb b/test/rubygems/test_gem_stub_specification.rb
index 53b9dab02d..43680265c7 100644
--- a/test/rubygems/test_gem_stub_specification.rb
+++ b/test/rubygems/test_gem_stub_specification.rb
@@ -110,6 +110,18 @@ class TestStubSpecification < Gem::TestCase
assert_equal code_rb, stub.matches_for_glob('code*').first
end
+ def test_matches_for_glob_with_bundler_inline
+ stub = stub_with_extension
+ code_rb = File.join stub.gem_dir, 'lib', 'code.rb'
+ FileUtils.mkdir_p File.dirname code_rb
+ FileUtils.touch code_rb
+
+ stub.stub(:raw_require_paths, nil) do
+ assert_equal code_rb, stub.matches_for_glob('code*').first
+ end
+ end
+
+
def test_missing_extensions_eh
stub = stub_with_extension do |s|
extconf_rb = File.join s.gem_dir, s.extensions.first