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

@@ -13,6 +13,14 @@ class PostAppealsControllerTest < ActionDispatch::IntegrationTest
end
end
context "show action" do
should "render" do
@appeal = create(:post_appeal)
get post_appeal_path(@appeal)
assert_redirected_to post_appeals_path(search: { id: @appeal.id })
end
end
context "index action" do
setup do
as_user do