X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2df3605142e73ef38c1ad307cbbd5437770b8d96..f435fce007d7817bd35f3beb93f0e3a844446154:/test/controllers/diary_entry_controller_test.rb diff --git a/test/controllers/diary_entry_controller_test.rb b/test/controllers/diary_entry_controller_test.rb index 6e766460e..5e53cb6b0 100644 --- a/test/controllers/diary_entry_controller_test.rb +++ b/test/controllers/diary_entry_controller_test.rb @@ -8,6 +8,9 @@ class DiaryEntryControllerTest < ActionController::TestCase def setup # Create the default language for diary entries create(:language, :code => "en") + # Stub nominatim response for diary entry locations + stub_request(:get, %r{^http://nominatim\.openstreetmap\.org/reverse\?}) + .to_return(:status => 404) end ## @@ -563,6 +566,13 @@ class DiaryEntryControllerTest < ActionController::TestCase assert_response :not_found, "Should not be able to get a deleted users diary RSS" end + def test_rss_character_escaping + create(:diary_entry, :title => "