Rename stub_signup_requests to stub_hostip_requests
This commit is contained in:
parent
5c9f1310b0
commit
8eca904388
7 changed files with 7 additions and 7 deletions
|
@ -9,7 +9,7 @@ class SiteControllerTest < ActionController::TestCase
|
|||
Object.const_set("ID_KEY", client_applications(:oauth_web_app).key)
|
||||
Object.const_set("POTLATCH2_KEY", client_applications(:oauth_web_app).key)
|
||||
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -4,7 +4,7 @@ class UserControllerTest < ActionController::TestCase
|
|||
api_fixtures
|
||||
|
||||
def setup
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -7,7 +7,7 @@ class OAuthTest < ActionDispatch::IntegrationTest
|
|||
include OAuth::Helper
|
||||
|
||||
def setup
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
def test_oauth10_web_app
|
||||
|
|
|
@ -5,7 +5,7 @@ class PageLocaleTest < ActionDispatch::IntegrationTest
|
|||
|
||||
def setup
|
||||
I18n.locale = "en"
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
|
|
@ -4,7 +4,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
|
|||
fixtures :users, :user_roles
|
||||
|
||||
def setup
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
test "grant" do
|
||||
|
|
|
@ -4,7 +4,7 @@ class UserTermsSeenTest < ActionDispatch::IntegrationTest
|
|||
fixtures :users
|
||||
|
||||
def setup
|
||||
stub_signup_requests
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
def test_api_blocked
|
||||
|
|
|
@ -175,7 +175,7 @@ module ActiveSupport
|
|||
stub_request(:get, url).and_return(:status => status, :body => body)
|
||||
end
|
||||
|
||||
def stub_signup_requests
|
||||
def stub_hostip_requests
|
||||
# Controller tests and integration tests use different IPs
|
||||
stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0")
|
||||
stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue