Commit 393e4103 authored by Igor Drozdov's avatar Igor Drozdov

Use any_args instead of kind_of(Hash) to fix tests

There's no practical difference between two, but any_args
accepts no_args as an options as well
parent 41057ab0
......@@ -171,7 +171,7 @@ RSpec.describe Projects::Settings::OperationsController do
new_incident_management_settings = params
expect(Gitlab::Tracking).to receive(:event)
.with('IncidentManagement::Settings', event_key, kind_of(Hash))
.with('IncidentManagement::Settings', event_key, any_args)
patch :update, params: project_params(project, incident_management_setting_attributes: new_incident_management_settings)
......
......@@ -11,7 +11,7 @@ RSpec.describe Gitlab::Tracking::IncidentManagement do
.with(
'IncidentManagement::Settings',
label,
value || kind_of(Hash)
value || any_args
)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment