brew/Library/Homebrew/test/cmd/help_spec.rb
Mike McQuaid 2f1c6e9ca5
Cleanup cmd/* tests
- Test `_args` methods
- Remove multiple integration tests (except where essential
  e.g. `install`, `help`)
2019-03-28 08:35:36 +00:00

18 lines
430 B
Ruby

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 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 be_a_failure
end
end
end