tests: add missing controller tests.

This commit is contained in:
evazion
2020-03-30 12:36:06 -05:00
parent 83c2abf1ae
commit 4e2fd82ef6
19 changed files with 227 additions and 14 deletions

View File

@@ -140,11 +140,8 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
context "edit action" do
should "render" do
as_user do
@wiki_page = create(:wiki_page)
end
get_auth wiki_page_path(@wiki_page), @mod
@wiki_page = as(@user) { create(:wiki_page) }
get_auth edit_wiki_page_path(@wiki_page), @user
assert_response :success
end
end