Minor tests formatting change
This commit is contained in:
parent
68dd0ac918
commit
8e5ad9ad9b
@ -42,18 +42,16 @@ describe Hbc::CLI::Search, :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't output anything to non-TTY stdout when there are no matches" do
|
it "doesn't output anything to non-TTY stdout when there are no matches" do
|
||||||
expect {
|
expect { Hbc::CLI::Search.run("foo-bar-baz") }
|
||||||
Hbc::CLI::Search.run("foo-bar-baz")
|
.to not_to_output.to_stdout
|
||||||
}.to not_to_output.to_stdout
|
.and not_to_output.to_stderr
|
||||||
.and not_to_output.to_stderr
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "lists all Casks available offline with no search term" do
|
it "lists all Casks available offline with no search term" do
|
||||||
allow(GitHub).to receive(:search_code).and_raise(GitHub::Error.new("reason"))
|
allow(GitHub).to receive(:search_code).and_raise(GitHub::Error.new("reason"))
|
||||||
expect {
|
expect { Hbc::CLI::Search.run }
|
||||||
Hbc::CLI::Search.run
|
.to output(/local-caffeine/).to_stdout.as_tty
|
||||||
}.to output(/local-caffeine/).to_stdout.as_tty
|
.and not_to_output.to_stderr
|
||||||
.and not_to_output.to_stderr
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "ignores hyphens in search terms" do
|
it "ignores hyphens in search terms" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user