views:

14

answers:

1

Same question, but solution did not work:, I've tried several versions of rspec: http://stackoverflow.com/questions/3517724/rspec-is-giving-an-error-with-my-layout-links-from-the-rails-tutorial-failure-e

dpalacio:sample_app dpalacio$ rspec -v
2.0.0.beta.18
dpalacio:sample_app dpalacio$ rspec spec/
controllers/    factories.rb    models/         requests/       spec_helper.rb  
dpalacio:sample_app dpalacio$ rspec spec/requests/
FFFFF

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

2) LayoutLinks should have a Contact page at '/contact'
    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

3) LayoutLinks should have an About page at '/about'
    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

4) LayoutLinks should have a Help page at '/help'
    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

5) LayoutLinks should have a Help page at '/signup'
    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

And the same with the 2.0.1 version:

dpalacio:sample_app dpalacio$ rspec -v
2.0.1
dpalacio:sample_app dpalacio$ rspec spec/
controllers/    factories.rb    models/         requests/       spec_helper.rb  
dpalacio:sample_app dpalacio$ rspec spec/requests/
FFFFF

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

2) LayoutLinks should have a Contact page at '/contact'
    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

3) LayoutLinks should have an About page at '/about'
    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

4) LayoutLinks should have a Help page at '/help'
    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

5) LayoutLinks should have a Help page at '/signup'
    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
+1  A: 

Ok found the issue, the issue is not RSPEC but WEBRAT. Add to your Gemfile:

gem 'webrat', '0.7.1'

The version of RSPEC should be: gem 'rspec', '2.0.1'

daniel