X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..464c7f863e8413f67b22999fd1c629969731c309:/test/integration/user_terms_seen_test.rb diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index dcc7fa7e9..811883f5f 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -44,7 +44,7 @@ class UserTermsSeenTest < ActionDispatch::IntegrationTest # should be carried through to a normal login with a message assert_response :success - assert !flash[:notice].nil? + assert_not flash[:notice].nil? end end @@ -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)