Test /forum_posts?search[creator_id]=1.

This commit is contained in:
evazion
2016-10-31 17:08:28 -05:00
parent 32409d542a
commit 6a9b68022a

View File

@@ -35,6 +35,12 @@ class ForumPostsControllerTest < ActionController::TestCase
assert_response :success
assert_equal(0, assigns(:forum_posts).size)
end
should "list by creator id" do
get :index, {:search => {:creator_id => @user.id}}
assert_response :success
assert_equal(1, assigns(:forum_posts).size)
end
end
context "with private topics" do