utils/github_spec: use author that exists.

This commit is contained in:
Mike McQuaid 2018-10-15 14:15:08 -07:00
parent 056dd588b2
commit 4def45f499
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -31,9 +31,12 @@ 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")
results = subject.search_issues("brew search",
repo: "Homebrew/legacy-homebrew",
author: "MikeMcQuaid",
is: "closed")
expect(results).not_to be_empty
expect(results.last["title"]).to eq("brew search : 422 Unprocessable Entity")
expect(results.first["title"]).to eq("Shall we run `brew update` automatically?")
end
end
end