gems: drop webmock.

This commit is contained in:
evazion
2020-06-15 13:26:20 -05:00
committed by evazion
parent 26ad844bbe
commit f730951e7f
5 changed files with 6 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
module ReportbooruHelper
def mock_request(url, method: :get, status: 200, body: nil, http: Danbooru::Http.any_instance)
def mock_request(url, method: :get, status: 200, body: nil, http: Danbooru::Http.any_instance, **options)
response = HTTP::Response.new(status: status, body: body, version: "1.1")
http.stubs(method).with(url).returns(response)
http.stubs(method).with(url, **options).returns(response)
end
def mock_post_search_rankings(date = Date.today, rankings)