diff options
author | Alexandra <brett@digitalmoksha.com> | 2017-10-01 17:07:26 +0200 |
---|---|---|
committer | Alexandra <brett@digitalmoksha.com> | 2017-10-01 17:07:26 +0200 |
commit | ed3c25e4294bfc75f7167ed63e30561e39ac3a97 (patch) | |
tree | 1c00af6738e0742e9d2140222ebdea669c8b6c37 /spec/models/email_spec.rb | |
parent | 39fbac868197442053d058023206f84f63473551 (diff) | |
download | gitlab-ce-ed3c25e4294bfc75f7167ed63e30561e39ac3a97.tar.gz |
spacing and small optimisations
Diffstat (limited to 'spec/models/email_spec.rb')
-rw-r--r-- | spec/models/email_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/email_spec.rb b/spec/models/email_spec.rb index 3fd3fe03be5..b32dd31ae6d 100644 --- a/spec/models/email_spec.rb +++ b/spec/models/email_spec.rb @@ -22,7 +22,9 @@ describe Email do it 'synchronizes the gpg keys when the email is updated' do email = user.emails.create(email: 'new@email.com') + expect(user).to receive(:update_invalid_gpg_signatures) + email.confirm end end @@ -33,6 +35,7 @@ describe Email do it 'scopes confirmed emails' do create(:email, :confirmed, user: user) create(:email, user: user) + expect(user.emails.count).to eq 2 expect(user.emails.confirmed.count).to eq 1 end |