Stub out requests to gravatar.com during tests.
This commit is contained in:
parent
d3d6e9902c
commit
90175c3bdb
2 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ class UserControllerTest < ActionController::TestCase
|
|||
|
||||
setup do
|
||||
stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0")
|
||||
stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -7,6 +7,8 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
I18n.locale = "en"
|
||||
|
||||
OmniAuth.config.test_mode = true
|
||||
|
||||
stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404)
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue