2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-26 09:49:13 +00:00
|
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
|
|
|
|
describe "Homebrew.tap_args" do
|
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
end
|
|
|
|
|
|
|
|
describe "brew tap", :integration_test do
|
|
|
|
it "taps a given Tap" do
|
|
|
|
path = setup_test_tap
|
|
|
|
|
|
|
|
expect { brew "tap", "--force-auto-update", "--full", "homebrew/bar", path/".git" }
|
2020-09-17 04:18:13 +05:30
|
|
|
.to output(/Tapped/).to_stderr
|
2019-03-26 09:49:13 +00:00
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|