Module RR::DoubleDefinitions::DoubleDefinition::ArgumentDefinitionConstructionMethods
In: lib/rr/double_definitions/double_definition.rb

Methods

Public Instance methods

Double#with sets the expectation that the Double will receive the passed in arguments.

Passing in a block sets the return value.

  mock(subject).method_name.with(1, 2) {:return_value}

Double#with_any_args sets the expectation that the Double can receive any arguments.

Passing in a block sets the return value.

  mock(subject).method_name.with_any_args {:return_value}

Double#with_no_args sets the expectation that the Double will receive no arguments.

Passing in a block sets the return value.

  mock(subject).method_name.with_no_args {:return_value}

[Validate]