summaryrefslogtreecommitdiff
path: root/spec/models/email_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/email_spec.rb')
-rw-r--r--spec/models/email_spec.rb3
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