Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-23 15:09:19 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-05-24 23:29:59 +0300
commit3713a57fe8c40bfccaa668d081caccb92354b1da (patch)
treebbd705a9ab40daefd95f7f143ca672ed4bd74561 /spec
parentc013d23d6320487cf293891f7c6b213cab816980 (diff)
add rss_token attribute to user model
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 6a15830a15c..c395469f699 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 'rss token' do
+ it 'has rss token' do
+ user = create(:user)
+ expect(user.rss_token).not_to be_blank
+ end
+ end
+
describe '#recently_sent_password_reset?' do
it 'is false when reset_password_sent_at is nil' do
user = build_stubbed(:user, reset_password_sent_at: nil)