]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_blocks_test.rb
Fix new rubocop warnings
[rails.git] / test / integration / user_blocks_test.rb
index 4048d53034863c614a273becad8d97e98db43c08..9381365920a8ab116efbb65ee7cedf2f70bc12ac 100644 (file)
@@ -2,7 +2,7 @@ require "test_helper"
 
 class UserBlocksTest < ActionDispatch::IntegrationTest
   def auth_header(user, pass)
-    { "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user}:#{pass}")) }
+    { "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}")) }
   end
 
   def test_api_blocked