Skip to content

Instantly share code, notes, and snippets.

@thejonanshow
Created April 8, 2012 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejonanshow/2a700ec18e09926d8c7f to your computer and use it in GitHub Desktop.
Save thejonanshow/2a700ec18e09926d8c7f to your computer and use it in GitHub Desktop.
accounts•ruby-1.9.3-p125@rails3_in_action•rails3_in_action»» cucumber
Feature: My account
In order to manage my account
As a money minder
I want to ensure my money doesn't get lost
Scenario: Taking out money # features/account.feature:6
Given I have an account # features/step_definitions/account_steps.rb:1
And it has a balance of 100 # features/step_definitions/account_steps.rb:5
When I take out 10 # features/step_definitions/account_steps.rb:9
undefined method `-' for "100":String (NoMethodError)
./features/step_definitions/account_steps.rb:10:in `/^I take out (\d+)$/'
features/account.feature:9:in `When I take out 10'
Then my balance should be 90 # features/step_definitions/account_steps.rb:14
Failing Scenarios:
cucumber features/account.feature:6 # Scenario: Taking out money
1 scenario (1 failed)
4 steps (1 failed, 1 skipped, 2 passed)
0m0.002s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment