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

@@ -24,6 +24,11 @@ class FavoritesControllerTest < ActionDispatch::IntegrationTest
get favorites_path
assert_redirected_to posts_path(format: "html")
end
should "render for json" do
get favorites_path, as: :json
assert_response :success
end
end
context "create action" do