brew/Library/Homebrew/test/cmd/help_spec.rb
Douglas Eichelberger 9075cbae62 brew style --fix
2023-04-21 09:58:50 -07:00

22 lines
535 B
Ruby

# frozen_string_literal: true
describe "brew", :integration_test do
describe "help" do
it "prints help for a documented Ruby command" do
expect { brew "help", "cat" }
.to output(/^Usage: brew cat/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end
describe "cat" do
it "prints help when no argument is given" do
expect { brew "cat" }
.to output(/^Usage: brew cat/).to_stderr
.and not_to_output.to_stdout
.and be_a_failure
end
end
end