/forum_topics.atom: add atom feed for forum topics.
This commit is contained in:
@@ -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"}}
|
||||
|
||||
Reference in New Issue
Block a user