Merge branch 'master' into moderation
[rails.git] / test / test_helper.rb
index 02f9665d7840fb89795cbc854e0ff8d31ad47f20..95d48bd5c7f2ed0485173106b043378d61f98abe 100644 (file)
@@ -82,7 +82,7 @@ module ActiveSupport
     ##
     # set request headers for HTTP basic authentication
     def basic_authorization(user, pass)
-      @request.env["HTTP_AUTHORIZATION"] = format("Basic %s", Base64.encode64("#{user}:#{pass}"))
+      @request.env["HTTP_AUTHORIZATION"] = format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}"))
     end
 
     ##