Ruby 2.6.3 brew tests fixes

This commit is contained in:
Mike McQuaid 2019-10-08 17:39:31 +01:00
parent cf34e1bec8
commit 8a8fc68264
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
5 changed files with 7 additions and 8 deletions

View File

@ -96,7 +96,7 @@ class SystemCommand
return [] if set_variables.empty? return [] if set_variables.empty?
["env", *set_variables] ["/usr/bin/env", *set_variables]
end end
def sudo_prefix def sudo_prefix

View File

@ -0,0 +1 @@
testball_bottle-0.1.yosemite.bottle.tar.gz

View File

@ -47,8 +47,7 @@ RSpec.shared_context "integration test" do
example.run example.run
ensure ensure
FileUtils.rm HOMEBREW_PREFIX/"bin/brew" FileUtils.rm_r HOMEBREW_PREFIX/"bin"
FileUtils.rmdir HOMEBREW_PREFIX/"bin"
end end
end end

View File

@ -23,7 +23,7 @@ describe SystemCommand do
it "includes the given variables explicitly" do it "includes the given variables explicitly" do
expect(Open3) expect(Open3)
.to receive(:popen3) .to receive(:popen3)
.with(an_instance_of(Hash), ["env", "env"], "A=1", "B=2", "C=3", "env", *env_args, {}) .with(an_instance_of(Hash), ["/usr/bin/env", "/usr/bin/env"], "A=1", "B=2", "C=3", "env", *env_args, {})
.and_call_original .and_call_original
command.run! command.run!
@ -49,7 +49,7 @@ describe SystemCommand do
expect(Open3) expect(Open3)
.to receive(:popen3) .to receive(:popen3)
.with(an_instance_of(Hash), ["/usr/bin/sudo", "/usr/bin/sudo"], "-E", "--", .with(an_instance_of(Hash), ["/usr/bin/sudo", "/usr/bin/sudo"], "-E", "--",
"env", "A=1", "B=2", "C=3", "env", *env_args, {}) "/usr/bin/env", "A=1", "B=2", "C=3", "env", *env_args, {})
.and_wrap_original do |original_popen3, *_, &block| .and_wrap_original do |original_popen3, *_, &block|
original_popen3.call("true", &block) original_popen3.call("true", &block)
end end

View File

@ -8,9 +8,8 @@ describe UnpackStrategy::Subversion, :needs_svn do
let(:path) { working_copy } let(:path) { working_copy }
before do before do
system "svnadmin", "create", repo safe_system "xcrun", "svnadmin", "create", repo
safe_system "svn", "checkout", "file://#{repo}", working_copy
system "svn", "checkout", "file://#{repo}", working_copy
FileUtils.touch working_copy/"test" FileUtils.touch working_copy/"test"
system "svn", "add", working_copy/"test" system "svn", "add", working_copy/"test"