2017-02-23 05:59:04 +01:00
|
|
|
describe "brew bundle", :integration_test, :needs_test_cmd_taps do
|
|
|
|
describe "check" do
|
2017-04-22 12:26:18 +01:00
|
|
|
it "checks if a Brewfile's dependencies are satisfied", :needs_network do
|
2017-02-23 05:59:04 +01:00
|
|
|
setup_remote_tap "homebrew/bundle"
|
|
|
|
|
|
|
|
HOMEBREW_REPOSITORY.cd do
|
2017-07-29 19:55:05 +02:00
|
|
|
system "git", "init"
|
|
|
|
system "git", "commit", "--allow-empty", "-m", "This is a test commit"
|
2017-02-23 05:59:04 +01:00
|
|
|
end
|
|
|
|
|
2017-02-28 14:50:46 +01:00
|
|
|
mktmpdir do |path|
|
2017-02-23 05:59:04 +01:00
|
|
|
FileUtils.touch "#{path}/Brewfile"
|
2017-02-28 14:50:46 +01:00
|
|
|
path.cd do
|
2017-02-23 05:59:04 +01:00
|
|
|
expect { brew "bundle", "check" }
|
|
|
|
.to output("The Brewfile's dependencies are satisfied.\n").to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|