summaryrefslogtreecommitdiff
path: root/spec/support/services/issuable_update_service_shared_examples.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/services/issuable_update_service_shared_examples.rb')
-rw-r--r--spec/support/services/issuable_update_service_shared_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/services/issuable_update_service_shared_examples.rb b/spec/support/services/issuable_update_service_shared_examples.rb
index 8867a1e3a90..4d2843af1c4 100644
--- a/spec/support/services/issuable_update_service_shared_examples.rb
+++ b/spec/support/services/issuable_update_service_shared_examples.rb
@@ -12,13 +12,13 @@ RSpec.shared_examples 'issuable update service' do
context 'to reopened' do
it 'executes hooks only once' do
- described_class.new(project, user, state_event: 'reopen').execute(closed_issuable)
+ described_class.new(project: project, current_user: user, params: { state_event: 'reopen' }).execute(closed_issuable)
end
end
context 'to closed' do
it 'executes hooks only once' do
- described_class.new(project, user, state_event: 'close').execute(open_issuable)
+ described_class.new(project: project, current_user: user, params: { state_event: 'close' }).execute(open_issuable)
end
end
end