Fix new rubocop warnings
This commit is contained in:
parent
3988940e3c
commit
a83030dab7
37 changed files with 94 additions and 213 deletions
|
@ -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
|
||||
|
|
|
@ -74,7 +74,7 @@ class UserTermsSeenTest < ActionDispatch::IntegrationTest
|
|||
private
|
||||
|
||||
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 with_terms_seen(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue