From 1b6c214ab5974bd4d5a5352c89d6cd94ddaf9044 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 10 Aug 2015 19:19:23 +0100 Subject: [PATCH] Add tests for new note GPX elements --- test/controllers/notes_controller_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 8dc0866da..9439ba676 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -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_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") -- 2.43.2