[rspec-users] stack level too deep

Daniel Lidström dlidstrom at gmail.com
Sat Aug 28 14:44:54 EDT 2010


On 28 Aug, 19:32, David Chelimsky <dchelim... at gmail.com> wrote:
> On Aug 28, 2010, at 11:33 AM, Justin Ko wrote:
>
> > Did you remove webrat from the Gemfile?
>
> That won't help with beta.19, which has a hard dependency on webrat. beta.20 does not, so you can choose between webrat and capybara.

Thanks for the responses so far. Here's what I have done:

- Switched to beta 20:

daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat
Gemfile
source 'http://rubygems.org'

gem 'rails', '3.0.0.rc'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby', :require => 'sqlite3'

group :development, :test do
  gem 'rspec-rails', '>= 2.0.0.beta.20'
  gem 'capybara'
end

- Updated rspec:

daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ rails
generate rspec:install
   identical  .rspec
       exist  spec
    conflict  spec/spec_helper.rb
Overwrite /home/daniel/programming/rails_projects/sample_app/spec/
spec_helper.rb? (enter "h" for help) [Ynaqdh] Y
       force  spec/spec_helper.rb
       exist  autotest
   identical  autotest/discover.rb

- Then run the tests again:


daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ rspec
-b spec
FFFF.F.F.F

Failures:
  1) LayoutLinks should have a Home page at '/'
     Failure/Error: response.should have_selector('title', :content =>
"Home")
     undefined method `has_selector?' for
#<ActionDispatch::TestResponse:0x7f0f4ca18cb0>
     # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.0.0.beta.20/
lib/rspec/matchers/has.rb:11:in `__send__'
     # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.0.0.beta.20/
lib/rspec/matchers/has.rb:11:in `matches?'
     # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.0.0.beta.20/
lib/rspec/expectations/handler.rb:11:in `handle_matcher'
     # /usr/lib/ruby/gems/1.8/gems/rspec-expectations-2.0.0.beta.20/
lib/rspec/expectations/extensions/kernel.rb:27:in `should'
     # ./spec/requests/layout_links_spec.rb:7
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:52:in `instance_eval'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:52
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:86:in `call'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:86:in `with_around_hooks'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:48
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:80:in `call'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:80:in `with_pending_capture'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:79:in `catch'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:79:in `with_pending_capture'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example.rb:47:in `run'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example_group.rb:222:in `run_examples'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example_group.rb:219:in `map'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example_group.rb:219:in `run_examples'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/example_group.rb:210:in `run'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:43:in `run_examples'
     # /home/daniel/.gem/ruby/1.8/gems/activesupport-3.0.0.rc/lib/
active_support/dependencies.rb:219:in `inject'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:43:in `each'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:43:in `inject'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:43:in `run_examples'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:26:in `run'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/reporter.rb:11:in `report'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/command_line.rb:23:in `run'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/runner.rb:46:in `run_in_process'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/runner.rb:37:in `run'
     # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/
core/runner.rb:10
     # /usr/bin/rspec:19
.
.
.

I don't know what to do from here?


More information about the rspec-users mailing list