/forum_topics.atom: add atom feed for forum topics.

This commit is contained in:
evazion
2017-05-11 23:53:06 -05:00
parent e68946e95d
commit 8c88e87710
7 changed files with 59 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ class ForumTopicsControllerTest < ActionController::TestCase
get :show, {:id => @forum_topic.id}
assert_response :success
end
should "render for atom feed" do
get :show, {:id => @forum_topic.id, :format => :atom}
assert_response :success
end
end
context "index action" do
@@ -64,6 +69,11 @@ class ForumTopicsControllerTest < ActionController::TestCase
assert_response :success
end
should "render for atom feed" do
get :index, {:format => :atom}
assert_response :success
end
context "with search conditions" do
should "list all matching forum topics" do
get :index, {:search => {:title_matches => "forum"}}