diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/reinstall_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/test/reinstall_test.rb b/Library/Homebrew/test/reinstall_test.rb index 613c06188..2906983c3 100644 --- a/Library/Homebrew/test/reinstall_test.rb +++ b/Library/Homebrew/test/reinstall_test.rb @@ -12,4 +12,13 @@ class IntegrationCommandTestReinstall < IntegrationCommandTestCase cmd("reinstall", "testball") assert foo_dir.exist? end + + def test_reinstall_with_invalid_option + setup_test_formula "testball" + + cmd("install", "testball", "--with-foo") + + assert_match "testball: this formula has no --with-fo option so it will be ignored!", + cmd("reinstall", "testball", "--with-fo") + end end |
