Logo: Relish

  1. Sign up
  2. Sign in

Project: RSpec Mocks 3.5

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
have_received(...).

Topics

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

Last published 10 months ago by myronmarston.