additional checks on forum topic visibility

This commit is contained in:
Albert Yi
2016-11-04 16:24:54 -07:00
parent a22a7c3302
commit eb6746a8a8
9 changed files with 35 additions and 11 deletions

View File

@@ -73,9 +73,9 @@ class WikiPagesControllerTest < ActionController::TestCase
end
should "destroy a wiki_page" do
assert_difference("WikiPage.count", -1) do
post :destroy, {:id => @wiki_page.id}, {:user_id => @mod.id}
end
post :destroy, {:id => @wiki_page.id}, {:user_id => @mod.id}
@wiki_page.reload
assert_equal(true, @wiki_page.is_deleted?)
end
end