Fix new ruboop warnings

This commit is contained in:
Tom Hughes 2021-06-22 18:34:15 +01:00
parent 449b2b869a
commit 63e4a89323
5 changed files with 71 additions and 107 deletions

View file

@ -1,14 +1,6 @@
require "test_helper"
class PageLocaleTest < ActionDispatch::IntegrationTest
def setup
I18n.locale = "en"
end
def teardown
I18n.locale = "en"
end
def test_defaulting
user = create(:user, :languages => [])

View file

@ -2,16 +2,12 @@ require "test_helper"
class UserCreationTest < ActionDispatch::IntegrationTest
def setup
I18n.locale = "en"
OmniAuth.config.test_mode = true
stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404)
end
def teardown
I18n.locale = "en"
OmniAuth.config.mock_auth[:openid] = nil
OmniAuth.config.mock_auth[:google] = nil
OmniAuth.config.mock_auth[:facebook] = nil