# Load standard fixtures needed to test API methods
def self.api_fixtures
#print "setting up the api_fixtures"
- fixtures :users, :changesets
+ fixtures :users, :changesets, :changeset_tags
fixtures :current_nodes, :nodes
set_fixture_class :current_nodes => Node
set_fixture_class :relation_members => OldRelationMember
set_fixture_class :relation_tags => OldRelationTag
- fixtures :gpx_files, :gpx_points, :gpx_file_tags
+ fixtures :gpx_files, :gps_points, :gpx_file_tags
set_fixture_class :gpx_files => Trace
- set_fixture_class :gpx_points => Tracepoint
+ set_fixture_class :gps_points => Tracepoint
set_fixture_class :gpx_file_tags => Tracetag
end
assert_equal a.tags, b.tags, "tags on node #{a.id}"
end
+ def basic_authorization(user, pass)
+ @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
+ end
+
+ def content(c)
+ @request.env["RAW_POST_DATA"] = c.to_s
+ end
+
# Add more helper methods to be used by all tests here...
end