Fix #4770: Allow flaggers to update flag reason.

This commit is contained in:
evazion
2021-03-23 01:25:43 -05:00
parent 41e0cad458
commit 6a84d33409
6 changed files with 98 additions and 2 deletions

View File

@@ -549,6 +549,13 @@ class PostsControllerTest < ActionDispatch::IntegrationTest
get_auth post_path(@post, q: "tagme"), @builder
assert_response :success
end
should "render the flag edit link for the flagger" do
get_auth post_path(@post), @user
assert_response :success
assert_select ".post-flag-reason a:first", true, text: "edit"
end
end
context "a deleted post" do