From 55036ed608f3c8bc06bb0c7fa26a75576a1ca144 Mon Sep 17 00:00:00 2001 From: Jose Vargas <jvargas@gitlab.com> Date: Tue, 28 Aug 2018 19:20:39 -0500 Subject: [PATCH] Fix rubocop failure on EE projects_spec --- ee/spec/requests/api/projects_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ee/spec/requests/api/projects_spec.rb b/ee/spec/requests/api/projects_spec.rb index 3e95202f747..39d864926ab 100644 --- a/ee/spec/requests/api/projects_spec.rb +++ b/ee/spec/requests/api/projects_spec.rb @@ -97,11 +97,11 @@ describe API::Projects do context 'as a user' do it 'returns 200 but does not change repository_storage' do - expect { + expect do Sidekiq::Testing.fake! do put(api("/projects/#{new_project.id}", user), repository_storage: unknown_storage, issues_enabled: false) end - }.not_to change(ProjectUpdateRepositoryStorageWorker.jobs, :size) + end.not_to change(ProjectUpdateRepositoryStorageWorker.jobs, :size) expect(response).to have_gitlab_http_status(200) expect(json_response['issues_enabled']).to eq(false) @@ -122,11 +122,11 @@ describe API::Projects do it 'returns 200 when repository storage has changed' do stub_storage_settings('extra' => { 'path' => 'tmp/tests/extra_storage' }) - expect { + expect do Sidekiq::Testing.fake! do put(api("/projects/#{new_project.id}", admin), repository_storage: 'extra') end - }.to change(ProjectUpdateRepositoryStorageWorker.jobs, :size).by(1) + end.to change(ProjectUpdateRepositoryStorageWorker.jobs, :size).by(1) expect(response).to have_gitlab_http_status(200) end -- 2.30.9