summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-23 14:11:24 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-05-24 22:29:59 +0200
commitc1b5c8069e18f76313925d7a7a267cb203d51f9d (patch)
treee21d60e9f72dfbb6df7747ba019b9d1ea3704336 /spec
parentff8ecbca17234897b26ea8de5caecaef1667d12d (diff)
downloadgitlab-ce-c1b5c8069e18f76313925d7a7a267cb203d51f9d.tar.gz
add missing spec for incoming email token presence
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index c395469f699..ca2b872729f 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -440,6 +440,13 @@ describe User, models: true do
end
end
+ describe 'ensure incoming email token' do
+ it 'has incoming email token' do
+ user = create(:user)
+ expect(user.incoming_email_token).not_to be_blank
+ end
+ end
+
describe 'rss token' do
it 'has rss token' do
user = create(:user)