diff options
| author | Thomas Maurer | 2017-02-04 13:20:00 +0100 |
|---|---|---|
| committer | Thomas Maurer | 2017-02-04 13:23:41 +0100 |
| commit | 22a37b2f5d3a57ec5732b0dcc8bb0474b4a47700 (patch) | |
| tree | e118a2287fe43fac6e7228640adf892d02704f2c /Library/Homebrew | |
| parent | 70b1c6de0b889aabc86b1990c59994e6acb8d726 (diff) | |
| download | brew-22a37b2f5d3a57ec5732b0dcc8bb0474b4a47700.tar.bz2 | |
Add failing reinstall test with invalid install option
Diffstat (limited to 'Library/Homebrew')
| -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 |
