summaryrefslogtreecommitdiff
path: root/spec/workers/trending_projects_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/trending_projects_worker_spec.rb')
-rw-r--r--spec/workers/trending_projects_worker_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/workers/trending_projects_worker_spec.rb b/spec/workers/trending_projects_worker_spec.rb
new file mode 100644
index 00000000000..c3c6fdcf2d5
--- /dev/null
+++ b/spec/workers/trending_projects_worker_spec.rb
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe TrendingProjectsWorker do
+ describe '#perform' do
+ it 'refreshes the trending projects' do
+ expect(TrendingProject).to receive(:refresh!)
+
+ described_class.new.perform
+ end
+ end
+end