]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Fix more rubocop style issues
[rails.git] / test / test_helper.rb
index 8f75a7ab0c08774bbea9114700a0b0b00170d637..ed2e02f63b0cc3b8044798fac342514a6dc4924b 100644 (file)
@@ -115,7 +115,7 @@ module ActiveSupport
     end
 
     def basic_authorization(user, pass)
-      @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
+      @request.env["HTTP_AUTHORIZATION"] = format("Basic %s", Base64.encode64("#{user}:#{pass}"))
     end
 
     def error_format(format)