summaryrefslogtreecommitdiff
path: root/spec/models/email_spec.rb
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-20 14:51:27 +0200
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 15:26:04 +0200
commitd7d335c05b9ae359b72f59c31bbe5ed059df7f52 (patch)
tree97922d2edab090408efffd6f968bd2b765e971c3 /spec/models/email_spec.rb
parent945667abd85b3b832159acda3bf1e3886175da46 (diff)
downloadgitlab-ce-d7d335c05b9ae359b72f59c31bbe5ed059df7f52.tar.gz
add primary email as a secondary email whenever the primary is changed
Diffstat (limited to 'spec/models/email_spec.rb')
-rw-r--r--spec/models/email_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/email_spec.rb b/spec/models/email_spec.rb
index 8e8ef411f23..7c88b544d3c 100644
--- a/spec/models/email_spec.rb
+++ b/spec/models/email_spec.rb
@@ -32,8 +32,8 @@ describe Email do
it 'scopes confirmed emails' do
create(:email, :confirmed, user: user)
- expect(user.emails.count).to eq 1
- expect(user.emails.unconfirmed.count).to eq 0
+ create(:email, user: user)
+ expect(user.emails.count).to eq 2
expect(user.emails.confirmed.count).to eq 1
end
end