X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b2fa94750221ec316eb6c5244ca66543f321538c..6648d3a2a6202566099423472665d3072eb02ae9:/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 ##