Skip to content

Allow spy to check passed arguments #2

@bowsersenior

Description

@bowsersenior
stub(Object, :spy => [:foo, :arg1, :arg2]) do
  Object.foo('something else')
end
# ! expected Object to receive foo with args: :arg1, :arg2 (received args: 'something else')

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