From f541c8e126722d497e7ab5a8efd73a9d53e27e21 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Apr 2013 21:44:46 +0100 Subject: [PATCH] Improve functional tests for notes#feed --- test/functional/notes_controller_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/functional/notes_controller_test.rb b/test/functional/notes_controller_test.rb index 0d06c1292..816ba4f6e 100644 --- a/test/functional/notes_controller_test.rb +++ b/test/functional/notes_controller_test.rb @@ -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 -- 2.39.5