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 ...@@ -171,7 +171,7 @@ RSpec.describe Projects::Settings::OperationsController do
new_incident_management_settings = params new_incident_management_settings = params
expect(Gitlab::Tracking).to receive(:event) 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) patch :update, params: project_params(project, incident_management_setting_attributes: new_incident_management_settings)
......
...@@ -11,7 +11,7 @@ RSpec.describe Gitlab::Tracking::IncidentManagement do ...@@ -11,7 +11,7 @@ RSpec.describe Gitlab::Tracking::IncidentManagement do
.with( .with(
'IncidentManagement::Settings', 'IncidentManagement::Settings',
label, label,
value || kind_of(Hash) value || any_args
) )
end end
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