X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd973c241f5ac0bd21670d5fbddcd703299344a6..9d106676b8b122b5458360c28e9ab14363d11aea:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 15b03b4da..0cf7c4afb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,11 +8,13 @@ load "composite_primary_keys/fixtures.rb" module ActiveSupport class TestCase + include FactoryGirl::Syntax::Methods + # Load standard fixtures needed to test API methods def self.api_fixtures # print "setting up the api_fixtures" - fixtures :users, :user_roles, :user_blocks - fixtures :changesets, :changeset_tags, :changeset_comments + fixtures :users, :user_roles + fixtures :changesets, :changeset_tags fixtures :current_nodes, :nodes set_fixture_class :current_nodes => Node @@ -58,8 +60,6 @@ module ActiveSupport fixtures :client_applications fixtures :redactions - - fixtures :notes, :note_comments end ## @@ -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