X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b2fa94750221ec316eb6c5244ca66543f321538c..08edaf794b4e3755d1ce54e65b40ec9902642ec7:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 70f69a3ae..c9ec46dcf 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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 ##