]> git.openstreetmap.org Git - rails.git/commitdiff
Add tests for new note GPX elements
authorTom Hughes <tom@compton.nu>
Mon, 10 Aug 2015 18:19:23 +0000 (19:19 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 10 Aug 2015 18:19:23 +0000 (19:19 +0100)
test/controllers/notes_controller_test.rb

index 8dc0866da8816c9918dca2035503175d1230998f..9439ba676b3d18f1cf670150bcc221c2e83b9c97 100644 (file)
@@ -510,6 +510,10 @@ class NotesControllerTest < ActionController::TestCase
     assert_equal "application/gpx+xml", @response.content_type
     assert_select "gpx", :count => 1 do
       assert_select "wpt[lat='#{notes(:open_note).lat}'][lon='#{notes(:open_note).lon}']", :count => 1 do
     assert_equal "application/gpx+xml", @response.content_type
     assert_select "gpx", :count => 1 do
       assert_select "wpt[lat='#{notes(:open_note).lat}'][lon='#{notes(:open_note).lon}']", :count => 1 do
+        assert_select "time", :count => 1
+        assert_select "name", "Note: #{notes(:open_note).id}"
+        assert_select "desc", :count => 1
+        assert_select "link[href='http://www.openstreetmap.org/note/#{notes(:open_note).id}']", :count => 1
         assert_select "extensions", :count => 1 do
           assert_select "id", notes(:open_note).id
           assert_select "url", note_url(notes(:open_note), :format => "gpx")
         assert_select "extensions", :count => 1 do
           assert_select "id", notes(:open_note).id
           assert_select "url", note_url(notes(:open_note), :format => "gpx")