]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/notes_controller_test.rb
Tidy up geocoder tests and extend lat/lon detection tests
[rails.git] / test / functional / notes_controller_test.rb
index 0d06c12923cd380cea0dbb2181f0550e91c882d8..816ba4f6eada13bf0b59adc7ec1fa38bc3c43066 100644 (file)
@@ -640,10 +640,20 @@ class NotesControllerTest < ActionController::TestCase
     get :feed, {:format => "rss"}
     assert_response :success
     assert_equal "application/rss+xml", @response.content_type
+    assert_select "rss", :count => 1 do
+      assert_select "channel", :count => 1 do
+        assert_select "item", :count => 8
+      end
+    end
 
     get :feed, {:bbox => "1,1,1.2,1.2", :format => "rss"}
     assert_response :success   
     assert_equal "application/rss+xml", @response.content_type
+    assert_select "rss", :count => 1 do
+      assert_select "channel", :count => 1 do
+        assert_select "item", :count => 3
+      end
+    end
   end
 
   def test_feed_fail