]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/notes_controller_test.rb
Replace to_s on TimeWithZone objects with to_formatted_s
[rails.git] / test / controllers / api / notes_controller_test.rb
index eb2af64f52d09357710aeb00f7f44a6b37a548a3..fe9127029e8125cf9b09a03f066b6903e587c8c4 100644 (file)
@@ -494,7 +494,7 @@ module Api
           assert_select "item", :count => 1 do
             assert_select "link", browse_note_url(open_note)
             assert_select "guid", note_url(open_note)
-            assert_select "pubDate", open_note.created_at.to_s(:rfc822)
+            assert_select "pubDate", open_note.created_at.to_formatted_s(: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}"