aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_install.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_install.rb')
-rw-r--r--Library/Homebrew/test/test_install.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_install.rb b/Library/Homebrew/test/test_install.rb
index 5d27d978b..e0a40b5d7 100644
--- a/Library/Homebrew/test/test_install.rb
+++ b/Library/Homebrew/test/test_install.rb
@@ -21,4 +21,10 @@ class IntegrationCommandTestInstall < IntegrationCommandTestCase
assert_match "testball1 already installed, it's just not migrated",
cmd("install", "testball2")
end
+
+ def test_install_with_invalid_option
+ setup_test_formula "testball1"
+ assert_match "testball1: --with-fo is invalid for this formula and will be ignored!",
+ cmd("install", "testball1", "--with-fo")
+ end
end