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"
|
2024-04-01 11:42:17 -07:00
|
|
|
require "cmd/tap"
|
2019-03-26 09:49:13 +00:00
|
|
|
|
2024-04-01 11:42:17 -07:00
|
|
|
RSpec.describe Homebrew::Cmd::TapCmd do
|
2019-03-26 09:49:13 +00:00
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
|
2021-02-01 16:14:25 -05:00
|
|
|
it "taps a given Tap", :integration_test do
|
2019-03-26 09:49:13 +00:00
|
|
|
path = setup_test_tap
|
|
|
|
|
2025-06-12 14:16:12 +02:00
|
|
|
expect { brew "tap", "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
|