tests: add more controller tests.

* Fix an exception in /artists/show_or_new.
This commit is contained in:
evazion
2020-03-31 17:46:45 -05:00
parent a272453bd0
commit e0a72ef135
9 changed files with 131 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ class PostAppealsControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end
should "render for json" do
get post_appeals_path, as: :json
assert_response :success
end
context "with search parameters" do
should "render" do
get_auth post_appeals_path, @user, params: {:search => {:post_id => @post_appeal.post_id}}