Skip to content
Snippets Groups Projects
Commit 5ac6eb43 authored by Andrea Kao's avatar Andrea Kao Committed by Mike McQuaid
Browse files

tests: extend cmd/desc integration test (#314)

parent 8e0e1642
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment