Logo: Relish

  1. Sign in

Project: Rspec-mocks

Setting constraints

RSpec provides a fluent interface off of expect(...).to receive(...) that allows you to
further constrain what you expect: the arguments, the number of times, and the ordering of
multiple messages.

Although not shown here, this fluent interface is also supported by spies, off of


  1. Matching arguments
  2. Receive Counts
  3. Message Order

Last published almost 3 years ago by benoit.