X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8e288156d47808a9136fd46eeb03b762e0d59a36..b5e695b6f3c97430066112ed6ba2bc4daf6af61b:/test/controllers/api/notes_controller_test.rb diff --git a/test/controllers/api/notes_controller_test.rb b/test/controllers/api/notes_controller_test.rb index d6759e192..f7e7c77f4 100644 --- a/test/controllers/api/notes_controller_test.rb +++ b/test/controllers/api/notes_controller_test.rb @@ -14,11 +14,11 @@ module Api def test_routes assert_routing( { :path => "/api/0.6/notes", :method => :post }, - { :controller => "api/notes", :action => "create", :format => "xml" } + { :controller => "api/notes", :action => "create" } ) assert_routing( { :path => "/api/0.6/notes/1", :method => :get }, - { :controller => "api/notes", :action => "show", :id => "1", :format => "xml" } + { :controller => "api/notes", :action => "show", :id => "1" } ) assert_recognizes( { :controller => "api/notes", :action => "show", :id => "1", :format => "xml" }, @@ -38,24 +38,24 @@ module Api ) assert_routing( { :path => "/api/0.6/notes/1/comment", :method => :post }, - { :controller => "api/notes", :action => "comment", :id => "1", :format => "xml" } + { :controller => "api/notes", :action => "comment", :id => "1" } ) assert_routing( { :path => "/api/0.6/notes/1/close", :method => :post }, - { :controller => "api/notes", :action => "close", :id => "1", :format => "xml" } + { :controller => "api/notes", :action => "close", :id => "1" } ) assert_routing( { :path => "/api/0.6/notes/1/reopen", :method => :post }, - { :controller => "api/notes", :action => "reopen", :id => "1", :format => "xml" } + { :controller => "api/notes", :action => "reopen", :id => "1" } ) assert_routing( { :path => "/api/0.6/notes/1", :method => :delete }, - { :controller => "api/notes", :action => "destroy", :id => "1", :format => "xml" } + { :controller => "api/notes", :action => "destroy", :id => "1" } ) assert_routing( { :path => "/api/0.6/notes", :method => :get }, - { :controller => "api/notes", :action => "index", :format => "xml" } + { :controller => "api/notes", :action => "index" } ) assert_recognizes( { :controller => "api/notes", :action => "index", :format => "xml" }, @@ -76,7 +76,7 @@ module Api assert_routing( { :path => "/api/0.6/notes/search", :method => :get }, - { :controller => "api/notes", :action => "search", :format => "xml" } + { :controller => "api/notes", :action => "search" } ) assert_recognizes( { :controller => "api/notes", :action => "search", :format => "xml" }, @@ -495,9 +495,9 @@ module Api assert_select "link", browse_note_url(open_note) assert_select "guid", note_url(open_note) assert_select "pubDate", open_note.created_at.to_fs(:rfc822) - # assert_select "geo:lat", open_note.lat.to_s - # assert_select "geo:long", open_note.lon - # assert_select "georss:point", "#{open_note.lon} #{open_note.lon}" + assert_select "geo|lat", open_note.lat.to_s + assert_select "geo|long", open_note.lon.to_s + assert_select "georss|point", "#{open_note.lon} #{open_note.lon}" end end end