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:50:25 -07:00
|
|
|
require "cmd/untap"
|
2019-03-26 09:49:13 +00:00
|
|
|
|
2024-04-01 11:50:25 -07:00
|
|
|
RSpec.describe Homebrew::Cmd::UntapCmd do
|
2019-03-26 09:49:13 +00:00
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
|
2021-02-01 16:14:25 -05:00
|
|
|
it "untaps a given Tap", :integration_test do
|
2019-03-26 09:49:13 +00:00
|
|
|
setup_test_tap
|
|
|
|
|
|
|
|
expect { brew "untap", "homebrew/foo" }
|
2020-09-17 04:18:13 +05:30
|
|
|
.to output(/Untapped/).to_stderr
|
|
|
|
.and not_to_output.to_stdout
|
2019-03-26 09:49:13 +00:00
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|