When overriding setup make sure to call the superclass
This commit is contained in:
parent
374668c7cc
commit
e219916dcb
6 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@ require "test_helper"
|
||||||
module Api
|
module Api
|
||||||
class NotesControllerTest < ActionController::TestCase
|
class NotesControllerTest < ActionController::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
# Stub nominatim response for note locations
|
# Stub nominatim response for note locations
|
||||||
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
||||||
.to_return(:status => 404)
|
.to_return(:status => 404)
|
||||||
|
|
|
@ -3,6 +3,8 @@ require "test_helper"
|
||||||
module Api
|
module Api
|
||||||
class UsersControllerTest < ActionController::TestCase
|
class UsersControllerTest < ActionController::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
|
|
||||||
stub_hostip_requests
|
stub_hostip_requests
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase
|
||||||
include ActionView::Helpers::NumberHelper
|
include ActionView::Helpers::NumberHelper
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
# Create the default language for diary entries
|
# Create the default language for diary entries
|
||||||
create(:language, :code => "en")
|
create(:language, :code => "en")
|
||||||
# Stub nominatim response for diary entry locations
|
# Stub nominatim response for diary entry locations
|
||||||
|
|
|
@ -2,6 +2,7 @@ require "test_helper"
|
||||||
|
|
||||||
class NotesControllerTest < ActionController::TestCase
|
class NotesControllerTest < ActionController::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
# Stub nominatim response for note locations
|
# Stub nominatim response for note locations
|
||||||
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
||||||
.to_return(:status => 404)
|
.to_return(:status => 404)
|
||||||
|
|
|
@ -4,6 +4,8 @@ class SiteControllerTest < ActionController::TestCase
|
||||||
##
|
##
|
||||||
# setup oauth keys
|
# setup oauth keys
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
|
|
||||||
Settings.id_key = create(:client_application).key
|
Settings.id_key = create(:client_application).key
|
||||||
Settings.potlatch2_key = create(:client_application).key
|
Settings.potlatch2_key = create(:client_application).key
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@ require "test_helper"
|
||||||
|
|
||||||
class UsersControllerTest < ActionController::TestCase
|
class UsersControllerTest < ActionController::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
|
|
||||||
stub_hostip_requests
|
stub_hostip_requests
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue