I recently upgraded the ruby version of my app to 3.0. After which multiple test cases were failing but all of them were of the same kind.
For ex, post :create, :params => { :identifiedBy => { :label => epc }, :model => { :productId => productId } }
or post :create, :params => create_params_kc_with_tid
All of the failing test cases gave the same error
ArgumentError: wrong number of arguments (given 2, expected 1)
I am not so sure about the root cause but I am suspecting it is happening due to the recent deprecation in ruby 3.0 i.e., Using the last argument as keyword parameters is deprecated
I am not so sure how to fix it. Please help me with the same.