module

Spec::Mocks::ArgumentConstraints

rspec latest stable

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

ArgumentConstraints are messages that you can include in message expectations to match arguments against a broader check than simple equality.

With the exception of any_args() and no_args(), the constraints are all positional - they match against the arg in the given position.

Files

  • lib/spec/mocks/argument_constraints.rb

Nested classes and modules