artists: fix artist bans not being recorded in artist history.
Using update_column bypasses callbacks, so a new artist version wasn't created when the is_banned flag was changed.
This commit is contained in:
@@ -111,7 +111,7 @@ class ArtistsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
context "unban action" do
|
||||
should "unban an artist" do
|
||||
@artist.ban!(banner: @admin)
|
||||
as(@admin) { @artist.ban!(banner: @admin) }
|
||||
put_auth unban_artist_path(@artist.id), @admin
|
||||
|
||||
assert_redirected_to(@artist)
|
||||
|
||||
Reference in New Issue
Block a user