Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 706 Bytes
Feature: RSpec compatibility
In order to use rspec in my step definitions
As a RSpec developer
I want spinach to detect my rspec failures as failures instead of errors
Scenario: Everything works as expected
Given I have a feature that should completely pass
When I run "spinach" with rspec
Then there should be no error
Scenario: An expectation fails
Given I have a feature with some failed expectations
When I run "spinach" with rspec
Then I should see the failure count along with their messages
Scenario: RSpec with capybara
Given I have a sinatra app with some capybara-based expectations
When I run "spinach" with rspec
Then there should be no error