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

@@ -31,6 +31,11 @@ class PostFlagsControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end
should "render for json" do
get post_flags_path, as: :json
assert_response :success
end
should "hide flagger names from regular users" do
get_auth post_flags_path, @user
assert_response :success