test_integration_cmds: fix when not a developer.

This commit is contained in:
Mike McQuaid 2016-05-30 21:44:35 +01:00
parent 7dad182ed1
commit f12932cf31

View File

@ -152,8 +152,10 @@ class IntegrationCommandTests < Homebrew::TestCase
cmd("help", "cat")) # Internal command (documented, Ruby).
assert_match(/^brew update /,
cmd("help", "update")) # Internal command (documented, Shell).
assert_match "Example usage:\n",
cmd("help", "test-bot") # Internal command (undocumented).
if ARGV.homebrew_developer?
assert_match "Example usage:\n",
cmd("help", "test-bot") # Internal developer command (undocumented).
end
end
def test_config