]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Don't enable OSB layer by default
[rails.git] / test / test_helper.rb
index 97c74900075def22db5e50c94a17d818b8b42334..6a618c8d3e6073bf24e1f2c7bbf77fd61269a4ba 100644 (file)
@@ -71,6 +71,8 @@ class ActiveSupport::TestCase
     set_fixture_class :gpx_files => 'Trace'
     set_fixture_class :gps_points => 'Tracepoint'
     set_fixture_class :gpx_file_tags => 'Tracetag'
+
+    fixtures :client_applications
   end
 
   ##
@@ -119,6 +121,10 @@ class ActiveSupport::TestCase
     @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
   end
 
+  def error_format(format)
+    @request.env["HTTP_X_ERROR_FORMAT"] = format
+  end
+
   def content(c)
     @request.env["RAW_POST_DATA"] = c.to_s
   end