Skip to content

Enable testing that a function was called with certain parameters in any order #66

@drmrd

Description

@drmrd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions