diff options
| author | Mike McQuaid | 2017-02-05 12:13:45 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-05 12:13:45 +0100 |
| commit | da9dd0a8633d826caac89bc0c6230caf542135b1 (patch) | |
| tree | 711ea116cc154606bcccac7b5f7ce52d0d386d69 /Library/Homebrew/test | |
| parent | 33fa80944ebff6b609e67712fb87ccc394cb327b (diff) | |
| parent | 6594650eb1c37170e7d70e7e9c75b48d154e38a9 (diff) | |
| download | brew-da9dd0a8633d826caac89bc0c6230caf542135b1.tar.bz2 | |
Merge pull request #1951 from tma/reinstall-with-options
Print warning when reinstalling with invalid options
Diffstat (limited to 'Library/Homebrew/test')
| -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 |
