09 May 2012, 12:32
Generic-user-small

Rajneesh Namta (1 post)

Hi,

I am newbie to cucumber and while going through chapter 2, I am getting the error while running code\first_taste\07\features\step_definitions\calculator_steps.rb

I downloaded the code snippets from the site and the same error is still there.

..F

(::) failed steps (::)

undefined method `should’ for ””:String (NoMethodError)
./features/step_definitions/calculator_steps.rb:11:in `(root)’:in `/the output should be “([“]*)”$/’
features\adding.feature:6:in `Then the output should be “4”’

Failing Scenarios:
cucumber features\adding.feature:3 # Scenario: Add two numbers

1 scenario (1 failed)
3 steps (1 failed, 2 passed)

Any clue as to what I am doing wrong here ?

15 May 2012, 07:57
Avatar_pragsmall

Matt Wynne (83 posts)

It sounds as if you don’t have the rspec gem installed. Did you follow the installation instructions in the appendix?

07 Feb 2013, 20:25
Generic-user-small

David West (3 posts)

Thanks, Matt. That helped me.

  You must be logged in to comment