![]() | CH4, undefined method ´include´ |
|
07 Nov 2012, 09:37
sven roeterdink (1 post) |
Hi, So im stuck at CH4. I´v copied all code from the example to be sure there wasn´t something wrong with my code. Is this a problem with the version im using? Rspec: 2.10.1 rb:26
Then I should see "Welcome to Codebreaker!" # features/step_definitions/codebreaker_steps.rb:31
undefined method `include' for #<Object:0x875f71c> (NoMethodError)
./features/step_definitions/codebreaker_steps.rb:32:in `/^I should see "([^"]*)"$/'
features/codebreaker_starts_game.feature:10:in `Then I should see "Welcome to Codebreaker!"'
And I should see "Enter guess:" # features/step_definitions/codebreaker_steps.rb:31
Failing Scenarios:
cucumber features/codebreaker_starts_game.feature:7 # Scenario: start game
Ive looked for ways to downgrade my gems of rspec and cucumber but cant find anything. What to do :) Thanks! |
|
26 Feb 2013, 04:52
David Chelimsky (206 posts) |
Hi Sven – all the examples work with the versions listed in the preface. Are you familiar with https://rvm.io/? It supports setting up different versions of Ruby and Gemsets with whatever versions you want. As for why that example is failing, would you mind posting the exact code to either https://gist.github.com or http://pastie.org/ and putting the link here? Maybe there’s something missing from the code in the book that I’ll be able to see if I can see your example. And apologies for taking so long to get back. This forum hasn’t been that busy for a while and fell off my radar. I’ll pay more attention now. Cheers, |
| You must be logged in to comment |

