aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/utils/github_spec.rb
diff options
context:
space:
mode:
authorBen Muschol2017-08-17 11:40:32 -0400
committerBen Muschol2017-08-17 11:40:32 -0400
commit7a93638105474c8e17a115dd2c16ae52f8f6806f (patch)
tree0d07f84381f920f75f721ebc9ecd894ff2365a7d /Library/Homebrew/test/utils/github_spec.rb
parent5f8d212ccccb8172985da9f71945fea6a8ea1b1a (diff)
downloadbrew-7a93638105474c8e17a115dd2c16ae52f8f6806f.tar.bz2
Make test more resilient
Diffstat (limited to 'Library/Homebrew/test/utils/github_spec.rb')
-rw-r--r--Library/Homebrew/test/utils/github_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/utils/github_spec.rb b/Library/Homebrew/test/utils/github_spec.rb
index 0b19c8c9e..7bfb4a930 100644
--- a/Library/Homebrew/test/utils/github_spec.rb
+++ b/Library/Homebrew/test/utils/github_spec.rb
@@ -32,8 +32,8 @@ 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 eq(1)
- expect(results.first["title"]).to eq("brew search : 422 Unprocessable Entity")
+ expect(results.count).to be > 1
+ expect(results.last["title"]).to eq("brew search : 422 Unprocessable Entity")
end
end
end