Fix some rubocop todos

This commit is contained in:
Tom Hughes 2020-08-02 19:38:58 +01:00
parent f881a8c83c
commit 2d3972249c
17 changed files with 48 additions and 70 deletions

View file

@ -2,7 +2,7 @@ require "test_helper"
class UserBlocksTest < ActionDispatch::IntegrationTest
def auth_header(user, pass)
{ "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}")) }
{ "HTTP_AUTHORIZATION" => format("Basic %<auth>s", :auth => Base64.encode64("#{user}:#{pass}")) }
end
def test_api_blocked