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