Slide 62
Slide 62 text
Feature: Calculator
As Einstein
I want a calculator
So I can perform basic operations
Scenario: Subtraction
Given I have two numbers
When I subtract them
wrong number of arguments (given 2, expected 0)
(ArgumentError)
calc.rb:1:in `subtract'
calc.rb:10:in `/^I\ subtract\ them$/'
calc.feature:8:in `When I subtract them'
Then I want the difference
Failing Scenarios:
cucumber calc.feature:6 # Scenario: Subtraction
1 scenario (1 failed)
3 steps (1 failed, 1 skipped, 1 passed)
0m0.021s