[rspec-users] rspec error's when checking LayoutLinks from the railstutorials
dchelimsky at gmail.com
Thu Oct 21 08:23:46 EDT 2010
On Oct 20, 2010, at 6:27 PM, Daniel Palacio wrote:
> I am following the rails tutorial:
> Basically the test is something like:
> require 'spec_helper'
> describe "LayoutLinks" do
> it "should have a Home page at '/'" do
> get '/'
> response.should have_selector('title', :content => "Home")
> root :to => 'pages#home'
> 1. I already googled and found
> 2. I already tried changing the rspec version to 2.0.0.beta.18, but I
> still get the same error.
> Here is the output:
> dpalacio:sample_app dpalacio$ rspec -v
> dpalacio:sample_app dpalacio$ rspec spec/requests/
> Finished in 0.55501 seconds
> 5 examples, 5 failures
> 1) LayoutLinks should have a Home page at '/'
> Failure/Error: Unable to find matching line from backtrace
> stack level too deep
> # /Users/dpalacio/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/forwardable.rb:185
At this point you should be using rails-3.0.1 and rspec-rails-2.0.1, and webrat-0.7.2. Are those the versions you are using?
More information about the rspec-users