This commit is contained in:
r888888888
2017-06-29 16:05:01 -07:00
parent c4503e9971
commit d7690d24b0
6 changed files with 15 additions and 14 deletions

View File

@@ -27,6 +27,6 @@ module IqdbTestHelper
url = "http://localhost:3004/similar?key=hunter2&url=#{CGI.escape source}&ref"
body = matches.map { |post| { post_id: post.id } }.to_json
FakeWeb.register_uri(:get, url, body: body)
stub_request(:get, url).to_return(body: body)
end
end