Skip to content

Commit

Permalink
Update subscription_preference_spec.rb
Browse files Browse the repository at this point in the history
- remove check to see if validation message is still the same. since it is enough to say that validation failed without some attr. and because we did not customize the error message, and are mainly relying on validation message coming from rails (which has been updated from Rails 4 to Rails 5)
  • Loading branch information
yuenmichelle1 committed Jul 3, 2024
1 parent 569f9fe commit 0e9ead2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/subscription_preference_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
it 'should require a user' do
without_user = build :subscription_preference, user: nil
expect(without_user).to_not be_valid
expect(without_user).to fail_validation user: "can't be blank"
expect(without_user).to fail_validation
end

it 'should require a category' do
Expand Down

0 comments on commit 0e9ead2

Please sign in to comment.