[rubygems/rubygems] Make the test_build_extensions
more predictable
The `test_build_extensions` make assumptions about return value of `Gem.install_extension_in_lib`. Givent that RubyGems allow to override this method via `defaults.rb` / `operating_system.rb`, this test might not always pass. This change makes sure that the `Gem.install_extension_in_lib` is predictable. https://github.com/rubygems/rubygems/commit/e83d0a5da8
This commit is contained in:
parent
5454741712
commit
a168426881
@ -106,6 +106,8 @@ install:
|
||||
|
||||
def test_build_extensions
|
||||
pend "terminates on mswin" if vc_windows? && ruby_repo?
|
||||
|
||||
extension_in_lib do
|
||||
@spec.extensions << "ext/extconf.rb"
|
||||
|
||||
ext_dir = File.join @spec.gem_dir, "ext"
|
||||
@ -139,6 +141,7 @@ install:
|
||||
assert_path_exist File.join @spec.gem_dir, "lib", "a.rb"
|
||||
assert_path_exist File.join @spec.gem_dir, "lib", "a", "b.rb"
|
||||
end
|
||||
end
|
||||
|
||||
def test_build_extensions_with_gemhome_with_space
|
||||
pend "terminates on mswin" if vc_windows? && ruby_repo?
|
||||
|
Loading…
x
Reference in New Issue
Block a user