The current behavior of expect(@some_mocked_function).to be_called_with_arguments(<a list of arguments>) works great when the function being mocked expects its arguments in a specific order. It would, however, be even better to be able to specify that certain parameters can appear anywhere in the function call. Ideally, I could provide both order-agnostic and order-dependent lists of arguments with be_called_with_arguments in the same expect statement.
The current behavior of
expect(@some_mocked_function).to be_called_with_arguments(<a list of arguments>)works great when the function being mocked expects its arguments in a specific order. It would, however, be even better to be able to specify that certain parameters can appear anywhere in the function call. Ideally, I could provide both order-agnostic and order-dependent lists of arguments withbe_called_with_argumentsin the sameexpectstatement.