Skip to content

Instantly share code, notes, and snippets.

@semanticart
Created October 20, 2009 19:34
Show Gist options
  • Select an option

  • Save semanticart/214543 to your computer and use it in GitHub Desktop.

Select an option

Save semanticart/214543 to your computer and use it in GitHub Desktop.
~/Documents/projects/cucumber/examples/sinatra(master)$ cucumber
Feature: Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers
Scenario: Add two numbers # features/add.feature:6
Given I visit the calculator page # features/step_definitions/add_steps.rb:1
wrong number of arguments (2 for 1) (ArgumentError)
(eval):2:in `visit'
./features/step_definitions/add_steps.rb:2:in `/^I visit the calculator page$/'
features/add.feature:7:in `Given I visit the calculator page'
And I fill in '50' for 'first' # features/step_definitions/add_steps.rb:5
And I fill in '70' for 'second' # features/step_definitions/add_steps.rb:5
When I press 'Add' # features/step_definitions/add_steps.rb:9
Then I should see 'Answer: 120' # features/step_definitions/add_steps.rb:13
Failing Scenarios:
cucumber features/add.feature:6 # Scenario: Add two numbers
1 scenario (1 failed)
5 steps (1 failed, 4 skipped)
0m0.005s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment