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
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/concerns/reenqueuer_spec.rb')
-rw-r--r--spec/workers/concerns/reenqueuer_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/workers/concerns/reenqueuer_spec.rb b/spec/workers/concerns/reenqueuer_spec.rb
index ab44042834f..56db2239bb1 100644
--- a/spec/workers/concerns/reenqueuer_spec.rb
+++ b/spec/workers/concerns/reenqueuer_spec.rb
@@ -79,6 +79,10 @@ RSpec.describe Reenqueuer do
job.perform
end
+
+ it 'returns the original value from #perform' do
+ expect(job.perform).to eq(true)
+ end
end
context 'when #perform returns falsey' do
@@ -87,6 +91,10 @@ RSpec.describe Reenqueuer do
job.perform
end
+
+ it 'returns the original value from #perform' do
+ expect(job.perform).to eq(false)
+ end
end
end
end