tests: add more controller tests.
* Fix an exception in /artists/show_or_new.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user