diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-09-20 14:24:10 +0300 |
---|---|---|
committer | Brett Walker <brett@digitalmoksha.com> | 2017-09-23 16:26:04 +0300 |
commit | 665c7876faadc41e1c7a77bb423b951cbcb020ce (patch) | |
tree | 6250727aee6c97f50e4f254da3c1bc0717206fee /spec/models/user_spec.rb | |
parent | ed99c899a28134e8d9a1a8a8c4677a6ee65bbd2b (diff) |
added email.confirmed scope and fix email comparison
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index c6df8028072..83addbb809e 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1173,7 +1173,7 @@ describe User do user.reload expect(user.verified_email?(user.email)).to be_truthy - expect(user.verified_email?(email_confirmed.email)).to be_truthy + expect(user.verified_email?(email_confirmed.email.titlecase)).to be_truthy end it 'returns false when the email is not verified/confirmed' do |