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

@@ -73,6 +73,11 @@ class ArtistsControllerTest < ActionDispatch::IntegrationTest
get_auth show_or_new_artists_path(name: "nobody"), @user
assert_response :success
end
should "redirect to the new artist page for a blank artist" do
get_auth show_or_new_artists_path, @user
assert_redirected_to new_artist_path
end
end
context "edit action" do