approvals: move post approval endpoint to /post_approvals.

Move the post approval endpoint from `POST /moderator/post/approval` to
`POST /post_approvals`.
This commit is contained in:
evazion
2020-02-20 15:37:18 -06:00
parent 610ad9e119
commit f47c56d976
10 changed files with 30 additions and 48 deletions

View File

@@ -1,25 +0,0 @@
require 'test_helper'
module Moderator
module Post
class ApprovalsControllerTest < ActionDispatch::IntegrationTest
context "The moderator post approvals controller" do
setup do
@admin = create(:admin_user)
as_admin do
@post = create(:post, :is_pending => true)
end
end
context "create action" do
should "render" do
post_auth moderator_post_approval_path, @admin, params: {:post_id => @post.id, :format => "js"}
assert_response :success
@post.reload
assert(!@post.is_pending?)
end
end
end
end
end
end