With Rails 5 and RSpec 3.5, I'm getting the following error.
1) User
Failure/Error: it { should validate_uniqueness_of(:auth_token)}
NoMethodError:
undefined method `validate_uniqueness_of' for #<RSpec::ExampleGroups::User:0x007fab919f8cf
8>
# ./spec/models/user_spec.rb:14:in `block (2 levels) in <top (required)>'
I've googled around for the right syntax but couldn't find the solution. Does anyone have an idea of what to use here? Thanks