Logo: Relish

  1. Sign up
  2. Sign in

Project: RSpec Expectations 2.0

RSpec Expectations 2.0

rspec-expectations is used to set expectations in executable

describe Account do
  it "has a balance of zero when first created" do
    Account.new.balance.should eq(Money.new(0))


The documentation for rspec-expectations is a work in progress. We'll be adding
Cucumber features over time, and clarifying existing ones. If you have
specific features you'd like to see added, find the existing documentation
incomplete or confusing, or, better yet, wish to write a missing Cucumber
feature yourself, please submit an issue or a pull request.


  1. Expectations
  2. Matchers
  3. Test frameworks

Last published about 1 month ago by dchelimsky.