diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-16 00:26:40 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-16 00:26:40 +0300 |
commit | e8aab1cd1550dd14408ae4c7b51f45110898b949 (patch) | |
tree | ca058d53cbeff735fe3eb678299afddd8b4ed1ca /spec/controllers/groups_controller_spec.rb | |
parent | 804fa437581713608a714ae0a3912d44e0a1d026 (diff) |
This fixes a long running tests due to changed Sidekiq state
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 4ae6364207b..a763e2c5ba8 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -89,12 +89,13 @@ describe GroupsController do context 'as the group owner' do before do - Sidekiq::Testing.fake! sign_in(user) end it 'schedules a group destroy' do - expect { delete :destroy, id: group.path }.to change(GroupDestroyWorker.jobs, :size).by(1) + Sidekiq::Testing.fake! do + expect { delete :destroy, id: group.path }.to change(GroupDestroyWorker.jobs, :size).by(1) + end end it 'redirects to the root path' do |