Stack level too deep with cucumber and rspec
Montag, 25. April 2011, 12:35 Uhr | roberto@vasquez-angel.de |When you get a “Stack level too deep” error, for all step definitions:
Feature: Create a customer
So that a new customer can access his archive
As a platform admin
I want to be able to create a new customer
Scenario: Create a customer # features/platform_backend/create_a_customer.feature:7
Given I am logged in # features/platform_backend/step_definitions/create_a_customer_steps.rb:1
When I create the customer John Doe Company # features/platform_backend/step_definitions/create_a_customer_steps.rb:8
stack level too deep (SystemStackError)
features/platform_backend/create_a_customer.feature:9:in `When I create the customer John Doe Company'
Then I should see the John Doe Company in the customer list # features/platform_backend/step_definitions/create_a_customer_steps.rb:15
Failing Scenarios:
cucumber features/platform_backend/create_a_customer.feature:7 # Scenario: Create a customer
1 scenario (1 failed)
3 steps (1 failed, 1 skipped, 1 passed)
0m2.483s
you have been bitten by a bug in rspec v2.5. You can solve this, by specifying a later version in your Rails.root/Gemfile:
group :test, :development do gem 'rspec', ">= 2.6.0.rc2" gem 'rspec-rails' end