From e096836b7b46e605fb4d1c10c632157dd6b11186 Mon Sep 17 00:00:00 2001 From: Ben Muschol Date: Thu, 17 Aug 2017 11:57:58 -0400 Subject: [PATCH] Improve rspec readability --- Library/Homebrew/test/utils/github_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/utils/github_spec.rb b/Library/Homebrew/test/utils/github_spec.rb index 7bfb4a9308..151b6430d1 100644 --- a/Library/Homebrew/test/utils/github_spec.rb +++ b/Library/Homebrew/test/utils/github_spec.rb @@ -32,7 +32,7 @@ describe GitHub do describe "::search_issues", :needs_network do it "queries GitHub issues with the passed parameters" do results = subject.search_issues("brew search", repo: "Homebrew/brew", author: "avetamine", is: "closed") - expect(results.count).to be > 1 + expect(results.count).not_to be_empty expect(results.last["title"]).to eq("brew search : 422 Unprocessable Entity") end end