FIX: log name changes only when the name is actually updated

This commit is contained in:
Arpit Jalan
2018-11-30 15:30:34 +05:30
parent fc0b7c9e26
commit 059e36a6ff
2 changed files with 6 additions and 2 deletions

View File

@@ -308,6 +308,10 @@ describe UserUpdater do
UserUpdater.new(acting_user, user).update(name: 'JiM TOm')
end.to_not change { UserHistory.count }
expect do
UserUpdater.new(acting_user, user).update(bio_raw: 'foo bar')
end.to_not change { UserHistory.count }
expect do
UserUpdater.new(acting_user, user_without_name).update(bio_raw: 'foo bar')
end.to_not change { UserHistory.count }