/artists/show_or_new: make public; add "artist doesn't exist" page.
* Fix access denied error when anonymous users open /artists/show_or_new. * When the artist doesn't exist, take user to "artist doesn't exist" page instead of redirecting to /artists/new.
This commit is contained in:
@@ -42,7 +42,7 @@ class ArtistsControllerTest < ActionController::TestCase
|
||||
assert_redirected_to(@masao)
|
||||
|
||||
get :show_or_new, { name: "nobody" }, { user_id: @user.id }
|
||||
assert_redirected_to(new_artist_path(name: "nobody"))
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
should "get the edit page" do
|
||||
|
||||
Reference in New Issue
Block a user