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)
module Api
class UsersControllerTest < ActionController::TestCase
def setup
+ super
+
stub_hostip_requests
end
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
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)
##
# setup oauth keys
def setup
+ super
+
Settings.id_key = create(:client_application).key
Settings.potlatch2_key = create(:client_application).key
class UsersControllerTest < ActionController::TestCase
def setup
+ super
+
stub_hostip_requests
end