APIdock / RSpec
/
Browse About
module

Spec::Mocks::ArgumentMatchers

1.2.0 - Show latest stable

ArgumentMatchers 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 matchers are all positional - they match against the arg in the given position.

Files

  • lib/spec/mocks/argument_matchers.rb

Nested classes and modules

  • Spec::Mocks::ArgumentMatchers::AnyArgMatcher
  • Spec::Mocks::ArgumentMatchers::AnyArgsMatcher
  • Spec::Mocks::ArgumentMatchers::BooleanMatcher
  • Spec::Mocks::ArgumentMatchers::DuckTypeMatcher
  • Spec::Mocks::ArgumentMatchers::EqualityProxy
  • Spec::Mocks::ArgumentMatchers::HashIncludingMatcher
  • Spec::Mocks::ArgumentMatchers::HashNotIncludingMatcher
  • Spec::Mocks::ArgumentMatchers::InstanceOf
  • Spec::Mocks::ArgumentMatchers::KindOf
  • Spec::Mocks::ArgumentMatchers::MatcherMatcher
  • Spec::Mocks::ArgumentMatchers::NoArgsMatcher
  • Spec::Mocks::ArgumentMatchers::RegexpMatcher

Related methods

  • Instance methods
  • a_kind_of
  • an_instance_of
  • any_args
  • anything
  • boolean
  • duck_type
  • hash_including
  • hash_not_including
  • instance_of
  • kind_of
  • no_args
  • Private methods
  • privateanythingize_lonely_keys
APIdock API Documentation Browser

© 2026 APIdock