Fix new ruboop warnings
This commit is contained in:
parent
449b2b869a
commit
63e4a89323
5 changed files with 71 additions and 107 deletions
|
@ -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 => [])
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue