brew/Library/Homebrew/test/cmd/tap_spec.rb

17 lines
371 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
2024-04-01 11:42:17 -07:00
require "cmd/tap"
2024-04-01 11:42:17 -07:00
RSpec.describe Homebrew::Cmd::TapCmd do
it_behaves_like "parseable arguments"
it "taps a given Tap", :integration_test do
path = setup_test_tap
expect { brew "tap", "homebrew/bar", path/".git" }
2020-09-17 04:18:13 +05:30
.to output(/Tapped/).to_stderr
.and be_a_success
end
end