[rubygems/rubygems] Added test for
https://github.com/rubygems/rubygems/pull/6444 https://github.com/rubygems/rubygems/commit/7d6ece5c92
This commit is contained in:
parent
93e34fe42e
commit
9801ad47bd
@ -3663,6 +3663,22 @@ end
|
|||||||
refute @a1.missing_extensions?
|
refute @a1.missing_extensions?
|
||||||
end
|
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
|
def test_find_all_by_full_name
|
||||||
pl = Gem::Platform.new "i386-linux"
|
pl = Gem::Platform.new "i386-linux"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user