Fix #4053: Add disapproval index improvements.

Add search form to /moderator/post/disapprovals.
This commit is contained in:
evazion
2019-08-02 21:22:33 -05:00
parent 6c69165780
commit 39bd766b34
5 changed files with 89 additions and 8 deletions

View File

@@ -9,6 +9,8 @@ module Moderator
as_user do
@post = create(:post, :is_pending => true)
end
CurrentUser.user = @admin
end
context "create action" do
@@ -28,6 +30,15 @@ module Moderator
end
end
end
context "index action" do
should "render" do
disapproval = FactoryBot.create(:post_disapproval, post: @post)
get_auth moderator_post_disapprovals_path, @admin
assert_response :success
end
end
end
end
end