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:
evazion
2020-05-04 02:54:10 -05:00
parent 6937c40747
commit 66c8c1f53f
3 changed files with 15 additions and 7 deletions

View File

@@ -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)