diff options
Diffstat (limited to 'spec/models/user_preference_spec.rb')
-rw-r--r-- | spec/models/user_preference_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_preference_spec.rb b/spec/models/user_preference_spec.rb index 27ddaea763d..5806f123871 100644 --- a/spec/models/user_preference_spec.rb +++ b/spec/models/user_preference_spec.rb @@ -61,7 +61,7 @@ RSpec.describe UserPreference do describe 'sort_by preferences' do shared_examples_for 'a sort_by preference' do it 'allows nil sort fields' do - user_preference.update(attribute => nil) + user_preference.update!(attribute => nil) expect(user_preference).to be_valid end |