Convert brew commands test to spec.

This commit is contained in:
Markus Reiter 2017-02-23 06:01:35 +01:00
parent c7121f6be5
commit f4fb0615de
2 changed files with 7 additions and 7 deletions

View 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

View File

@ -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