X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1891efef06872740184a2abc9ecfdb9f263c9ba5..cf639202b802be9ce1a6f3f65e7d4f6292a2ad3a:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 4bd228f14..0baf92270 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -11,7 +11,8 @@ module ActiveSupport # Load standard fixtures needed to test API methods def self.api_fixtures # print "setting up the api_fixtures" - fixtures :users, :user_roles, :user_blocks, :changesets, :changeset_tags + fixtures :users, :user_roles, :user_blocks + fixtures :changesets, :changeset_tags, :changeset_comments fixtures :current_nodes, :nodes set_fixture_class :current_nodes => Node @@ -166,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