aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-10 11:12:13 +0900
committergit <svn-admin@ruby-lang.org>2023-03-11 04:44:44 +0000
commit9801ad47bd8dc73370c4c668ac716a6e31802637 (patch)
tree2d8aa43bfe5d5a20fc480125049f1d70e16785f9
parent93e34fe42e81d72a3e45501bf3f200ca5e78442f (diff)
downloadruby-9801ad47bd8dc73370c4c668ac716a6e31802637.tar.gz
[rubygems/rubygems] Added test for
https://github.com/rubygems/rubygems/pull/6444 https://github.com/rubygems/rubygems/commit/7d6ece5c92
-rw-r--r--test/rubygems/test_gem_specification.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 56ca7acaf2..38b0c0c8b4 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -3663,6 +3663,22 @@ end
refute @a1.missing_extensions?
end
+ def test_missing_extensions_eh_local_gemspec
+ pend "extensions don't quite work on jruby" if Gem.java_platform?
+
+ spec = new_default_spec "default", 1
+ spec.extensions << "extconf.rb"
+
+ ext_spec
+ @ext.name = spec.name
+ FileUtils.mkdir_p File.join(@ext.gem_dir, "lib")
+
+ # ext_spec used empty extconf.rb, so we need to create dummy extension for rake-compiler case.
+ FileUtils.touch File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}")
+
+ refute @ext.missing_extensions?
+ end
+
def test_find_all_by_full_name
pl = Gem::Platform.new "i386-linux"