I am running into two issues when walking from the Code Breaker example.
1) codebreaker/spec/codebreaker/game_spec.rb:7: undefined method `let’ for Spec::Example::ExampleGroup::Subclass_1::Subclass_1:Class (NoMethodError)
I am using the exact game_spec.rb contained within the provided source code. I am using Ubuntu and have confirmed that the proper gems are installed:
** LOCAL GEMS **
actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activeresource (2.3.5) activesupport (2.3.5) builder (2.1.2) cucumber (0.6.2) cucumber-rails (0.2.4) diff-lcs (1.1.2) json_pure (1.2.0) mysql (2.8.1) polyglot (0.2.9) rack (1.1.0) rails (2.3.5) rake (0.8.7) rspec (1.3.0) rspec-rails (1.3.2) selenium-client (1.2.18) term-ansicolor (1.0.4) treetop (1.4.3)
For some reason it appears that Spec::Mocks is not available.
2) undefined method `double’ for main:Object (NoMethodError)
Test Doubles are also not available and this appears to be a related issue.
I even tried to explicitly define rspec.
Spec::Runner.configure do |config| config.mock_with :rspec end
Any help would be greatly appreciated.