Improve functional tests for notes#feed

This commit is contained in:
Tom Hughes 2013-04-24 21:44:46 +01:00
parent da0dd88f62
commit f541c8e126

View 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