I am going through the PDF version of the P1.0 release of ‘The Cucumber Book’ and am stuck on the ‘Adding.feature’ example in Chapter 2.
This is the output I get when I run @cucumber –format progress@ after filling in the @When /^the calculator is run$/@ step definition (Page 17).
.F- (::) failed steps (::) undefined method `success?' for nil:NilClass (NoMethodError) ./features/step_definitions/calculator_steps.rb:7:in `/^the calculator is run$/' features/adding.feature:5:in `When the calculator is run' Failing Scenarios: cucumber features/adding.feature:3 # Scenario: Add two numbers 1 scenario (1 failed) 3 steps (1 failed, 1 skipped, 1 passed) 0m0.002s
Anyone knows how to fix this?