mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 15:06:54 +00:00
Merge pull request #2152 from reitermarkus/spec-commands
Convert `brew commands` test to spec.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user