]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Merge pull request #2624 from francois2metz/diary-entry
[rails.git] / test / test_helper.rb
index 84d03bec214b0bbbe08807346bb13da5043d39a3..9354e664600cd87eccfe4d3107b125bb4b692005 100644 (file)
@@ -115,12 +115,6 @@ module ActiveSupport
       assert_equal a.tags, b.tags, "tags on node #{a.id}"
     end
 
-    ##
-    # set request headers for HTTP basic authentication
-    def basic_authorization(user, pass)
-      @request.env["HTTP_AUTHORIZATION"] = format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}"))
-    end
-
     ##
     # return request header for HTTP Basic Authorization
     def basic_authorization_header(user, pass)
@@ -171,11 +165,7 @@ module ActiveSupport
     end
 
     ##
-    # set request readers to ask for a particular error format
-    def error_format(format)
-      @request.env["HTTP_X_ERROR_FORMAT"] = format
-    end
-
+    # return request header to ask for a particular error format
     def error_format_header(f)
       { "X-Error-Format" => f }
     end