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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-16 00:26:40 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-16 00:26:40 +0300
commite8aab1cd1550dd14408ae4c7b51f45110898b949 (patch)
treeca058d53cbeff735fe3eb678299afddd8b4ed1ca /spec/controllers/admin/groups_controller_spec.rb
parent804fa437581713608a714ae0a3912d44e0a1d026 (diff)
This fixes a long running tests due to changed Sidekiq state
Diffstat (limited to 'spec/controllers/admin/groups_controller_spec.rb')
-rw-r--r--spec/controllers/admin/groups_controller_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/controllers/admin/groups_controller_spec.rb b/spec/controllers/admin/groups_controller_spec.rb
index 0239aea47fb..602de72d23f 100644
--- a/spec/controllers/admin/groups_controller_spec.rb
+++ b/spec/controllers/admin/groups_controller_spec.rb
@@ -7,12 +7,13 @@ describe Admin::GroupsController do
before do
sign_in(admin)
- Sidekiq::Testing.fake!
end
describe 'DELETE #destroy' do
it 'schedules a group destroy' do
- expect { delete :destroy, id: project.group.path }.to change(GroupDestroyWorker.jobs, :size).by(1)
+ Sidekiq::Testing.fake! do
+ expect { delete :destroy, id: project.group.path }.to change(GroupDestroyWorker.jobs, :size).by(1)
+ end
end
it 'redirects to the admin group path' do