summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-23 14:09:45 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-05-24 22:29:59 +0200
commitff8ecbca17234897b26ea8de5caecaef1667d12d (patch)
tree8f7966d5cbf2684772dbbf5ec05ccee1f48b76e0 /spec
parent3713a57fe8c40bfccaa668d081caccb92354b1da (diff)
downloadgitlab-ce-ff8ecbca17234897b26ea8de5caecaef1667d12d.tar.gz
rake task to reset all rss tokens
Diffstat (limited to 'spec')
-rw-r--r--spec/tasks/tokens_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/tasks/tokens_spec.rb b/spec/tasks/tokens_spec.rb
index 19036c7677c..b84137eb365 100644
--- a/spec/tasks/tokens_spec.rb
+++ b/spec/tasks/tokens_spec.rb
@@ -18,4 +18,10 @@ describe 'tokens rake tasks' do
expect { run_rake_task('tokens:reset_all_email') }.to change { user.reload.incoming_email_token }
end
end
+
+ describe 'reset_all_rss task' do
+ it 'invokes create_hooks task' do
+ expect { run_rake_task('tokens:reset_all_rss') }.to change { user.reload.rss_token }
+ end
+ end
end