Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

RSpec Expectations

Matt Wynne edited this page Aug 14, 2014 · 1 revision

If you're using bundler, add the rspec-expectations gem to your Gemfile. Cucumber will automatically load RSpec's matchers and expectation methods to be available in your step definitions.

e.g.

Given /^a nice new bike$/ do
  expect(bike).to be_shiny
end

Clone this wiki locally