Fix rubocop warnings

This commit is contained in:
Tom Hughes 2016-01-19 00:19:09 +00:00
parent 2ef6a960d1
commit 8fe1899596
58 changed files with 500 additions and 488 deletions

View file

@ -329,6 +329,7 @@ class OAuthTest < ActionDispatch::IntegrationTest
assert_not_nil token.created_at
assert_nil token.authorized_at
assert_nil token.invalidated_at
assert_equal options[:oauth_callback], token.callback_url
assert_allowed token, client.permissions
token

View file

@ -81,7 +81,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
assert_difference("User.count") do
assert_difference("ActionMailer::Base.deliveries.size", 1) do
post_via_redirect "/user/save", {},
{ "HTTP_ACCEPT_LANGUAGE" => "#{locale}" }
{ "HTTP_ACCEPT_LANGUAGE" => locale.to_s }
end
end