Merge pull request #2152 from reitermarkus/spec-commands
Convert `brew commands` test to spec.
This commit is contained in:
commit
73d75ef07c
7
Library/Homebrew/test/cmd/commands_spec.rb
Normal file
7
Library/Homebrew/test/cmd/commands_spec.rb
Normal file
@ -0,0 +1,7 @@
|
||||
describe "brew commands", :integration_test do
|
||||
it "prints a list of all available commands" do
|
||||
expect { brew "commands" }
|
||||
.to output(/Built-in commands/).to_stdout
|
||||
.and be_a_success
|
||||
end
|
||||
end
|
||||
@ -4,13 +4,6 @@ require "cmd/commands"
|
||||
require "fileutils"
|
||||
require "testing_env"
|
||||
|
||||
class IntegrationCommandTestCommands < IntegrationCommandTestCase
|
||||
def test_commands
|
||||
assert_match "Built-in commands",
|
||||
cmd("commands")
|
||||
end
|
||||
end
|
||||
|
||||
class CommandsTests < Homebrew::TestCase
|
||||
def setup
|
||||
super
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user