]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Controllers + a few tests + new notification added. Work pending on the notification...
[rails.git] / test / test_helper.rb
index 15b03b4da1919c24623484c5dd6d3ea6d5eebaf0..0baf922704d24af5c7f3ecf7a32ef443868a479e 100644 (file)
@@ -167,8 +167,8 @@ module ActiveSupport
 
         OSM.http_client = Faraday.new do |builder|
           builder.adapter :test do |stub|
 
         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
             end
           end
         end