diff options
| author | Alexey Alekhin | 2017-09-02 02:29:56 +0200 | 
|---|---|---|
| committer | Alexey Alekhin | 2017-09-02 02:29:56 +0200 | 
| commit | 8e5ad9ad9be3587001fb92b4367ddb7cc4c7fc8c (patch) | |
| tree | afefbb02116b30f413bc0189b26e2ff1d8c07e6c /Library/Homebrew/test/cask/cli | |
| parent | 68dd0ac918639e6c1cbe7ba1800cda3646ba4e0b (diff) | |
| download | brew-8e5ad9ad9be3587001fb92b4367ddb7cc4c7fc8c.tar.bz2 | |
Minor tests formatting change
Diffstat (limited to 'Library/Homebrew/test/cask/cli')
| -rw-r--r-- | Library/Homebrew/test/cask/cli/search_spec.rb | 14 | 
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Homebrew/test/cask/cli/search_spec.rb b/Library/Homebrew/test/cask/cli/search_spec.rb index 85bb42c56..6dc980590 100644 --- a/Library/Homebrew/test/cask/cli/search_spec.rb +++ b/Library/Homebrew/test/cask/cli/search_spec.rb @@ -42,18 +42,16 @@ describe Hbc::CLI::Search, :cask do    end    it "doesn't output anything to non-TTY stdout when there are no matches" do -    expect { -      Hbc::CLI::Search.run("foo-bar-baz") -    }.to not_to_output.to_stdout -    .and not_to_output.to_stderr +    expect { Hbc::CLI::Search.run("foo-bar-baz") } +      .to not_to_output.to_stdout +      .and not_to_output.to_stderr    end    it "lists all Casks available offline with no search term" do      allow(GitHub).to receive(:search_code).and_raise(GitHub::Error.new("reason")) -    expect { -      Hbc::CLI::Search.run -    }.to output(/local-caffeine/).to_stdout.as_tty -    .and not_to_output.to_stderr +    expect { Hbc::CLI::Search.run } +      .to output(/local-caffeine/).to_stdout.as_tty +      .and not_to_output.to_stderr    end    it "ignores hyphens in search terms" do  | 
