I am following the rails tutorial:
http://railstutorial.org/chapters/filling-in-the-layout#top
Basically the test is something like:
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
Routes:
root :to => ‘pages#home’
-
I already googled and found
ruby on rails - Why is Rspec saying "Failure/Error: Unable to find matching line from backtrace"? - Stack Overflow -
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
2.0.1
dpalacio:sample_app dpalacio$ rspec spec/requests/
FFFFF
Finished in 0.55501 seconds
5 examples, 5 failures
- 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
…
Is there any other thing that might be causing the problem ?
Thanks
-dan