diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-27 18:08:38 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-27 18:08:38 +0200 |
commit | f0a64399c1171d2757c8ce70a36517d556cd9233 (patch) | |
tree | 709e0caabebf31ac2530ab007b7c288345b4af11 /spec/workers/plugin_worker_spec.rb | |
parent | 2150b2cde2700a48095db4364d02f91c9b9a1456 (diff) | |
download | gitlab-ce-f0a64399c1171d2757c8ce70a36517d556cd9233.tar.gz |
Refactor plugin execution method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/workers/plugin_worker_spec.rb')
-rw-r--r-- | spec/workers/plugin_worker_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/workers/plugin_worker_spec.rb b/spec/workers/plugin_worker_spec.rb index d64de05f211..60631def8f3 100644 --- a/spec/workers/plugin_worker_spec.rb +++ b/spec/workers/plugin_worker_spec.rb @@ -15,13 +15,5 @@ describe PluginWorker do expect(subject.perform(filename, data)).to be_truthy end - - it 'handles exception well' do - data = { 'event_name' => 'project_create' } - - allow(Gitlab::Plugin).to receive(:execute).with(filename, data).and_raise('Permission denied') - - expect { subject.perform(filename, data) }.not_to raise_error - end end end |