wiki pages: allow members to rename, delete, and undelete wikis.

This commit is contained in:
evazion
2019-12-16 18:44:34 -06:00
parent be9bdc0ab3
commit ddf928515c
4 changed files with 12 additions and 25 deletions

View File

@@ -168,11 +168,6 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
put_auth wiki_page_path(@wiki_page), @mod, params: { wiki_page: { title: "bar" }}
assert_match(/still has 42 posts/, flash[:notice])
end
should "not allow non-Builders to delete wiki pages" do
put_auth wiki_page_path(@wiki_page), @user, params: {wiki_page: { is_deleted: true }}
assert_equal(false, @wiki_page.reload.is_deleted?)
end
end
context "destroy action" do