brew/Library/Homebrew/test/command_test.rb

12 lines
305 B
Ruby
Raw Normal View History

require "testing_env"
2016-09-27 00:03:40 +02:00
class IntegrationCommandTestCommand < IntegrationCommandTestCase
def test_command
assert_equal "#{HOMEBREW_LIBRARY_PATH}/cmd/info.rb",
cmd("command", "info")
assert_match "Unknown command",
cmd_fail("command", "I-don't-exist")
end
end