X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c12459dead02ee417d434ed228a9f37754c83a3a..96cc9abd239340a5fb93c7fb3b47415c09914047:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index d41a369f8..c9ec46dcf 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,7 +8,7 @@ require "webmock/minitest" module ActiveSupport class TestCase - include FactoryGirl::Syntax::Methods + include FactoryBot::Syntax::Methods ## # takes a block which is executed in the context of a different @@ -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 ##