diff options
| author | Nath Tumlin | 2017-03-13 17:52:32 -0500 |
|---|---|---|
| committer | Nath Tumlin | 2017-03-13 17:52:32 -0500 |
| commit | 2080c360e26868efc08a0603c507a0be44c37b67 (patch) | |
| tree | b14f8fc65e29719ce0bb6c389eef683cacee5341 /Library/Homebrew/test/cask/cli | |
| parent | 250f3445b70ee09cdce4685d500b591978dbf63d (diff) | |
| download | brew-2080c360e26868efc08a0603c507a0be44c37b67.tar.bz2 | |
Added tests for highlight installed and fixed style errors
Diffstat (limited to 'Library/Homebrew/test/cask/cli')
| -rw-r--r-- | Library/Homebrew/test/cask/cli/search_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli/search_spec.rb b/Library/Homebrew/test/cask/cli/search_spec.rb index 0bcff809a..cc4e0ae63 100644 --- a/Library/Homebrew/test/cask/cli/search_spec.rb +++ b/Library/Homebrew/test/cask/cli/search_spec.rb @@ -56,4 +56,16 @@ describe Hbc::CLI::Search, :cask do Hbc::CLI::Search.run("caskroom") }.to output(/^No Cask found for "caskroom"\.\n/).to_stdout end + + it "doesn't highlight not installed packages" do + expect(Hbc::CLI::Search.highlight_installed "local-caffeine").to eq("local-caffeine") + end + + it "highlights installed packages" do + shutup do + Hbc::CLI::Install.run("local-caffeine") + end + + expect(Hbc::CLI::Search.highlight_installed "local-caffeine").to eq(pretty_installed "local-caffeine") + end end |
