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:
authorToon Claes <toon@gitlab.com>2018-04-19 17:56:36 +0300
committerToon Claes <toon@gitlab.com>2018-05-07 10:42:09 +0300
commitb07c4e3dc454fb90c320b3912ef84da06cd56ddf (patch)
treecdb78d54c636a3189298b9a4fe79e0488af37ab7 /spec/workers/repository_check
parent6dca7b5b0d8920f2c7aaedefdb8ee1a056d7a1c2 (diff)
Remove `Rails.env.test?` from production code
Diffstat (limited to 'spec/workers/repository_check')
-rw-r--r--spec/workers/repository_check/batch_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/repository_check/batch_worker_spec.rb b/spec/workers/repository_check/batch_worker_spec.rb
index 850b8cd8f5c..6cd27d2fafb 100644
--- a/spec/workers/repository_check/batch_worker_spec.rb
+++ b/spec/workers/repository_check/batch_worker_spec.rb
@@ -31,8 +31,8 @@ describe RepositoryCheck::BatchWorker do
it 'does nothing when repository checks are disabled' do
create(:project, created_at: 1.week.ago)
- current_settings = double('settings', repository_checks_enabled: false)
- expect(subject).to receive(:current_settings) { current_settings }
+
+ stub_application_setting(repository_checks_enabled: false)
expect(subject.perform).to eq(nil)
end