Hello, I am trying to run my first integration tests of my rails 3 application. All tests fail with an error "stack level too deep". The tests are intended to verify the link routes and look like this: daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat spec/requests/layout_links_spec.rb require ''spec_helper'' describe "LayoutLinks" do it "should have a Home page at ''/''" do get ''/'' response.should have_selector(''title'', :content => "Home") end it "should have a Contact page at ''/contact''" do get ''/contact'' response.should have_selector(''title'', :content => "Contact") end it "should have an About page at ''/about''" do get ''/about'' response.should have_selector(''title'', :content => "About") end it "should have a Help page at ''/help''" do get ''/help'' response.should have_selector(''title'', :content => "Help") end end My routes.rb looks like this: daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat config/routes.rb SampleApp::Application.routes.draw do get "pages/home" get "pages/contact" get "pages/about" get "pages/help" match ''/about'', :to => ''pages#about'' match ''/contact'', :to => ''pages#contact'' match ''/help'', :to => ''pages#help'' match ''/signup'', :to => ''pages#signup'' match ''/signin'', :to => ''pages#signin'' end Now when I try to run the tests I get a stack level too deep error for each one of them. Here''s the output from "rspec -b spec/ requests" (last test included, others look the same): 4) LayoutLinks should have a Help page at ''/help'' Failure/Error: response.should have_selector(''title'', :content => "Help") stack level too deep . . . . # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ rails/example/request_example_group.rb:34:in `last_response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ adapters/rack.rb:26:in `response'' # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ methods.rb:29:in `response'' # ./spec/requests/layout_links_spec.rb:22 # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:52:in `instance_eval'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:52 # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:86:in `call'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:86:in `with_around_hooks'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:48 # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:80:in `call'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:80:in `with_pending_capture'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:79:in `catch'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:79:in `with_pending_capture'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example.rb:47:in `run'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example_group.rb:222:in `run_examples'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example_group.rb:219:in `map'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example_group.rb:219:in `run_examples'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/example_group.rb:210:in `run'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/command_line.rb:42: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.19/lib/rspec/ core/command_line.rb:42:in `each'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/command_line.rb:42:in `inject'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/command_line.rb:42:in `run_examples'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/command_line.rb:25:in `run'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/formatters/base_formatter.rb:37:in `report'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/formatters/base_formatter.rb:156:in `sync_output'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/formatters/base_formatter.rb:34:in `report'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/command_line.rb:22:in `run'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/runner.rb:46:in `run_in_process'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/runner.rb:37:in `run'' # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ core/runner.rb:10 # /usr/bin/rspec:19 daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ My Gemfile looks like this: 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.19'' end Any ideas what is going on? I am using Ubuntu 10.04 x86_64. Regards, Daniel Lidstr?m Stockholm, Sweden
One thing I notice is you have "get ''/''" yet you don''t have a root route. You can define a root route like so: root :to => "pages#home" Also, you can run your requests by doing "rake spec:requests" On Aug 27, 4:12?pm, Daniel Lidstr?m <dlidst... at gmail.com> wrote:> Hello, > > I am trying to run my first integration tests of my rails 3 > application. All tests fail with an error "stack level too deep". The > tests are intended to verify the link routes and look like this: > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > spec/requests/layout_links_spec.rb > require ''spec_helper'' > > describe "LayoutLinks" do > > ? it "should have a Home page at ''/''" do > ? ? get ''/'' > ? ? response.should have_selector(''title'', :content => "Home") > ? end > > ? it "should have a Contact page at ''/contact''" do > ? ? get ''/contact'' > ? ? response.should have_selector(''title'', :content => "Contact") > ? end > > ? it "should have an About page at ''/about''" do > ? ? get ''/about'' > ? ? response.should have_selector(''title'', :content => "About") > ? end > > ? it "should have a Help page at ''/help''" do > ? ? get ''/help'' > ? ? response.should have_selector(''title'', :content => "Help") > ? end > > end > > My routes.rb looks like this: > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > config/routes.rb > SampleApp::Application.routes.draw do > ? get "pages/home" > > ? get "pages/contact" > > ? get "pages/about" > > ? get "pages/help" > > ? match ''/about'', :to => ''pages#about'' > > ? match ''/contact'', :to => ''pages#contact'' > > ? match ''/help'', :to => ''pages#help'' > > ? match ''/signup'', :to => ''pages#signup'' > > ? match ''/signin'', :to => ''pages#signin'' > end > > Now when I try to run the tests I get a stack level too deep error for > each one of them. Here''s the output from "rspec -b spec/ > requests" (last test included, others look the same): > > 4) LayoutLinks should have a Help page at ''/help'' > ? ? Failure/Error: response.should have_selector(''title'', :content => > "Help") > ? ? stack level too deep > ? ? ? ? . > ? ? ? ? . > ? ? ? ? . > ? ? ? ? . > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # ./spec/requests/layout_links_spec.rb:22 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:52:in `instance_eval'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:52 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:86:in `call'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:86:in `with_around_hooks'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:48 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:80:in `call'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:80:in `with_pending_capture'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:79:in `catch'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:79:in `with_pending_capture'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:47:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:222:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:219:in `map'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:219:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:210:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42: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.19/lib/rspec/ > core/command_line.rb:42:in `each'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42:in `inject'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:25:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:37:in `report'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:156:in `sync_output'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:34:in `report'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:22:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:46:in `run_in_process'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:37:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:10 > ? ? # /usr/bin/rspec:19 > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ > > My Gemfile looks like this: > > 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.19'' > end > > Any ideas what is going on? I am using Ubuntu 10.04 x86_64. > > Regards, > > Daniel Lidstr?m > Stockholm, Sweden > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
On Aug 27, 4:12?pm, Daniel Lidstr?m <dlidst... at gmail.com> wrote:> Hello, > > I am trying to run my first integration tests of my rails 3 > application. All tests fail with an error "stack level too deep". The > tests are intended to verify the link routes and look like this: > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > spec/requests/layout_links_spec.rb > require ''spec_helper'' > > describe "LayoutLinks" do > > ? it "should have a Home page at ''/''" do > ? ? get ''/'' > ? ? response.should have_selector(''title'', :content => "Home") > ? end > > ? it "should have a Contact page at ''/contact''" do > ? ? get ''/contact'' > ? ? response.should have_selector(''title'', :content => "Contact") > ? end > > ? it "should have an About page at ''/about''" do > ? ? get ''/about'' > ? ? response.should have_selector(''title'', :content => "About") > ? end > > ? it "should have a Help page at ''/help''" do > ? ? get ''/help'' > ? ? response.should have_selector(''title'', :content => "Help") > ? end > > end > > My routes.rb looks like this: > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > config/routes.rb > SampleApp::Application.routes.draw do > ? get "pages/home" > > ? get "pages/contact" > > ? get "pages/about" > > ? get "pages/help" > > ? match ''/about'', :to => ''pages#about'' > > ? match ''/contact'', :to => ''pages#contact'' > > ? match ''/help'', :to => ''pages#help'' > > ? match ''/signup'', :to => ''pages#signup'' > > ? match ''/signin'', :to => ''pages#signin'' > end > > Now when I try to run the tests I get a stack level too deep error for > each one of them. Here''s the output from "rspec -b spec/ > requests" (last test included, others look the same): > > 4) LayoutLinks should have a Help page at ''/help'' > ? ? Failure/Error: response.should have_selector(''title'', :content => > "Help") > ? ? stack level too deep > ? ? ? ? . > ? ? ? ? . > ? ? ? ? . > ? ? ? ? . > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > rails/example/request_example_group.rb:34:in `last_response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > adapters/rack.rb:26:in `response'' > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > methods.rb:29:in `response'' > ? ? # ./spec/requests/layout_links_spec.rb:22 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:52:in `instance_eval'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:52 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:86:in `call'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:86:in `with_around_hooks'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:48 > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:80:in `call'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:80:in `with_pending_capture'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:79:in `catch'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:79:in `with_pending_capture'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example.rb:47:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:222:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:219:in `map'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:219:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/example_group.rb:210:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42: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.19/lib/rspec/ > core/command_line.rb:42:in `each'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42:in `inject'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:42:in `run_examples'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:25:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:37:in `report'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:156:in `sync_output'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/formatters/base_formatter.rb:34:in `report'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/command_line.rb:22:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:46:in `run_in_process'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:37:in `run'' > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > core/runner.rb:10 > ? ? # /usr/bin/rspec:19 > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ > > My Gemfile looks like this: > > 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.19'' > end > > Any ideas what is going on? I am using Ubuntu 10.04 x86_64. > > Regards, > > Daniel Lidstr?m > Stockholm, Sweden > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersI can reproduce this error with webrat version 0.7.2.beta.1
On Aug 27, 8:44?pm, Justin Ko <jko... at gmail.com> wrote:> On Aug 27, 4:12?pm, Daniel Lidstr?m <dlidst... at gmail.com> wrote: > > > > > > > Hello, > > > I am trying to run my first integration tests of my rails 3 > > application. All tests fail with an error "stack level too deep". The > > tests are intended to verify the link routes and look like this: > > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > > spec/requests/layout_links_spec.rb > > require ''spec_helper'' > > > describe "LayoutLinks" do > > > ? it "should have a Home page at ''/''" do > > ? ? get ''/'' > > ? ? response.should have_selector(''title'', :content => "Home") > > ? end > > > ? it "should have a Contact page at ''/contact''" do > > ? ? get ''/contact'' > > ? ? response.should have_selector(''title'', :content => "Contact") > > ? end > > > ? it "should have an About page at ''/about''" do > > ? ? get ''/about'' > > ? ? response.should have_selector(''title'', :content => "About") > > ? end > > > ? it "should have a Help page at ''/help''" do > > ? ? get ''/help'' > > ? ? response.should have_selector(''title'', :content => "Help") > > ? end > > > end > > > My routes.rb looks like this: > > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ cat > > config/routes.rb > > SampleApp::Application.routes.draw do > > ? get "pages/home" > > > ? get "pages/contact" > > > ? get "pages/about" > > > ? get "pages/help" > > > ? match ''/about'', :to => ''pages#about'' > > > ? match ''/contact'', :to => ''pages#contact'' > > > ? match ''/help'', :to => ''pages#help'' > > > ? match ''/signup'', :to => ''pages#signup'' > > > ? match ''/signin'', :to => ''pages#signin'' > > end > > > Now when I try to run the tests I get a stack level too deep error for > > each one of them. Here''s the output from "rspec -b spec/ > > requests" (last test included, others look the same): > > > 4) LayoutLinks should have a Help page at ''/help'' > > ? ? Failure/Error: response.should have_selector(''title'', :content => > > "Help") > > ? ? stack level too deep > > ? ? ? ? . > > ? ? ? ? . > > ? ? ? ? . > > ? ? ? ? . > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-rails-2.0.0.beta.19/lib/rspec/ > > rails/example/request_example_group.rb:34:in `last_response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/ > > adapters/rack.rb:26:in `response'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/webrat-0.7.2.beta.1/lib/webrat/core/ > > methods.rb:29:in `response'' > > ? ? # ./spec/requests/layout_links_spec.rb:22 > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:52:in `instance_eval'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:52 > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:86:in `call'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:86:in `with_around_hooks'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:48 > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:80:in `call'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:80:in `with_pending_capture'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:79:in `catch'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:79:in `with_pending_capture'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example.rb:47:in `run'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example_group.rb:222:in `run_examples'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example_group.rb:219:in `map'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example_group.rb:219:in `run_examples'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/example_group.rb:210:in `run'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/command_line.rb:42: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.19/lib/rspec/ > > core/command_line.rb:42:in `each'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/command_line.rb:42:in `inject'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/command_line.rb:42:in `run_examples'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/command_line.rb:25:in `run'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/formatters/base_formatter.rb:37:in `report'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/formatters/base_formatter.rb:156:in `sync_output'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/formatters/base_formatter.rb:34:in `report'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/command_line.rb:22:in `run'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/runner.rb:46:in `run_in_process'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/runner.rb:37:in `run'' > > ? ? # /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.19/lib/rspec/ > > core/runner.rb:10 > > ? ? # /usr/bin/rspec:19 > > > daniel at ubuntu/home/daniel/programming/rails_projects/sample_app$ > > > My Gemfile looks like this: > > > 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.19'' > > end > > > Any ideas what is going on? I am using Ubuntu 10.04 x86_64. > > > Regards, > > > Daniel Lidstr?m > > Stockholm, Sweden > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > > I can reproduce this error with webrat version 0.7.2.beta.1 > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersI would suggest switching to capybara.
On 28 Aug, 04:13, Justin Ko <jko... at gmail.com> wrote:> > I would suggest switching to capybara.Hi Justin, I tried changing a part of my Gemfile to this: group :development, :test do gem ''rspec-rails'', ''>= 2.0.0.beta.19'' gem ''capybara'' end I am not sure if this is correct or what to do next. I tried "bundle install" and then "rspec spec/requests". Capybara was installed but I still got the stack level too deep error. Could you tell me what to do or point me to an online resource where this is documented? Thanks in advance! Regards, Daniel Lidstr?m Stockholm, Sweden
I think you''re having this problem: http://github.com/rspec/rspec-rails/issues#issue/140 - Toni On Sat, Aug 28, 2010 at 1:59 PM, Daniel Lidstr?m <dlidstrom at gmail.com> wrote:> On 28 Aug, 04:13, Justin Ko <jko... at gmail.com> wrote: >> >> I would suggest switching to capybara. > > Hi Justin, > > I tried changing a part of my Gemfile to this: > > group :development, :test do > ?gem ''rspec-rails'', ''>= 2.0.0.beta.19'' > ?gem ''capybara'' > end > > I am not sure if this is correct or what to do next. I tried "bundle > install" and then "rspec spec/requests". Capybara was installed but I > still got the stack level too deep error. Could you tell me what to do > or point me to an online resource where this is documented? > > Thanks in advance! > > Regards, > > Daniel Lidstr?m > Stockholm, Sweden > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Aug 28, 6:59?am, Daniel Lidstr?m <dlidst... at gmail.com> wrote:> On 28 Aug, 04:13, Justin Ko <jko... at gmail.com> wrote: > > > > > I would suggest switching to capybara. > > Hi Justin, > > I tried changing a part of my Gemfile to this: > > group :development, :test do > ? gem ''rspec-rails'', ''>= 2.0.0.beta.19'' > ? gem ''capybara'' > end > > I am not sure if this is correct or what to do next. I tried "bundle > install" and then "rspec spec/requests". Capybara was installed but I > still got the stack level too deep error. Could you tell me what to do > or point me to an online resource where this is documented? > > Thanks in advance! > > Regards, > > Daniel Lidstr?m > Stockholm, Sweden > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersDid you remove webrat from the Gemfile?
On Aug 28, 2010, at 11:33 AM, Justin Ko wrote:> > > On Aug 28, 6:59 am, Daniel Lidstr?m <dlidst... at gmail.com> wrote: >> On 28 Aug, 04:13, Justin Ko <jko... at gmail.com> wrote: >> >> >> >>> I would suggest switching to capybara. >> >> Hi Justin, >> >> I tried changing a part of my Gemfile to this: >> >> group :development, :test do >> gem ''rspec-rails'', ''>= 2.0.0.beta.19'' >> gem ''capybara'' >> end >> >> I am not sure if this is correct or what to do next. I tried "bundle >> install" and then "rspec spec/requests". Capybara was installed but I >> still got the stack level too deep error. Could you tell me what to do >> or point me to an online resource where this is documented? >> >> Thanks in advance! >> >> Regards, >> >> Daniel Lidstr?m >> Stockholm, Sweden >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > > 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.
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?
On Aug 28, 2:44?pm, Daniel Lidstr?m <dlidst... at gmail.com> wrote:> 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? > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersDid you run bundle install?
Have selector is a webrat matcher. If you''re not using webrat you can''t use it. Capybara''s matcher is have_css. I suggest you take a look at capybara docs. - Toni On Sat, Aug 28, 2010 at 9:59 PM, Justin Ko <jko170 at gmail.com> wrote:> > > On Aug 28, 2:44?pm, Daniel Lidstr?m <dlidst... at gmail.com> wrote: >> 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? >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > > Did you run bundle install? > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 28 Aug, 21:21, Toni Tuominen <tjt... at utu.fi> wrote:> Have selector is a webrat matcher. If you''re not using webrat you > can''t use it. Capybara''s matcher is have_css. I suggest you take a > look at capybara docs. > > - ToniAha, that makes perfect sense Toni. Thanks! Daniel