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
|
||||
class NotesControllerTest < ActionController::TestCase
|
||||
def setup
|
||||
super
|
||||
# Stub nominatim response for note locations
|
||||
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
||||
.to_return(:status => 404)
|
||||
|
|
|
@ -3,6 +3,8 @@ require "test_helper"
|
|||
module Api
|
||||
class UsersControllerTest < ActionController::TestCase
|
||||
def setup
|
||||
super
|
||||
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase
|
|||
include ActionView::Helpers::NumberHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
# Create the default language for diary entries
|
||||
create(:language, :code => "en")
|
||||
# Stub nominatim response for diary entry locations
|
||||
|
|
|
@ -2,6 +2,7 @@ require "test_helper"
|
|||
|
||||
class NotesControllerTest < ActionController::TestCase
|
||||
def setup
|
||||
super
|
||||
# Stub nominatim response for note locations
|
||||
stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?})
|
||||
.to_return(:status => 404)
|
||||
|
|
|
@ -4,6 +4,8 @@ class SiteControllerTest < ActionController::TestCase
|
|||
##
|
||||
# setup oauth keys
|
||||
def setup
|
||||
super
|
||||
|
||||
Settings.id_key = create(:client_application).key
|
||||
Settings.potlatch2_key = create(:client_application).key
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ require "test_helper"
|
|||
|
||||
class UsersControllerTest < ActionController::TestCase
|
||||
def setup
|
||||
super
|
||||
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue