Logo: Relish

  1. Sign in

Project: RSpec Mocks 3.4

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 about 7 years ago by myronmarston.