]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_blocks_test.rb
Fix typo
[rails.git] / test / integration / user_blocks_test.rb
index 38c64df7d333f317a754614654f4ffcfc063020c..fcf008c07b206c4ab67e11bc35c9bb077eb5f20a 100644 (file)
@@ -4,7 +4,7 @@ class UserBlocksTest < ActionDispatch::IntegrationTest
   fixtures :users, :user_blocks, :user_roles
 
   def auth_header(user, pass)
-    { "HTTP_AUTHORIZATION" => "Basic %s" % Base64.encode64("#{user}:#{pass}") }
+    { "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user}:#{pass}")) }
   end
 
   def test_api_blocked