X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd973c241f5ac0bd21670d5fbddcd703299344a6..d63dba03ce37140984accc8a93688b184bdec4c4:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 15b03b4da..0baf92270 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -167,8 +167,8 @@ module ActiveSupport OSM.http_client = Faraday.new do |builder| builder.adapter :test do |stub| - stubs.each do |url, body| - stub.get(url) { |_env| [200, {}, body] } + stubs.each do |url, response| + stub.get(url) { |_env| [response["code"], {}, response["body"]] } end end end