diff options
| author | Andrea Kao | 2016-06-03 05:10:38 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2016-06-03 13:10:38 +0100 |
| commit | 5ac6eb434e82c071146bae03870db097f9740479 (patch) | |
| tree | c9698b12c5771b80072ff0442e32a5c46e9717cb /Library | |
| parent | 8e0e1642ad9cf87cd71521aabd03f03b8e7ddc8d (diff) | |
| download | brew-5ac6eb434e82c071146bae03870db097f9740479.tar.bz2 | |
tests: extend cmd/desc integration test (#314)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 89b8be6d3..a16658125 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -323,6 +323,17 @@ class IntegrationCommandTests < Homebrew::TestCase EOS assert_equal "testball: Some test", cmd("desc", "testball") + assert_match "Pick one, and only one", cmd_fail("desc", "--search", "--name") + assert_match "You must provide a search term", cmd_fail("desc", "--search") + + refute_predicate HOMEBREW_CACHE.join("desc_cache.json"), + :exist?, "Cached file should not exist" + + cmd("desc", "--description", "testball") + assert_predicate HOMEBREW_CACHE.join("desc_cache.json"), + :exist?, "Cached file should exist" + + FileUtils.rm HOMEBREW_CACHE.join("desc_cache.json") ensure formula_file.unlink end |
