Displaying 2 results from an estimated 2 matches for "layoutlink".
Did you mean:
layoutlinks
2010 Oct 20
3
rspec error's when checking LayoutLinks from the railstutorials
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''
1. I already googled and fou...
2012 Nov 06
2
rspec failure upon revisit
...user_spec.rb
# No reason given
# ./spec/models/user_spec.rb:4
users/new.html.erb add some examples to (or delete)
/Users/andrewchickedantz/rails_projects/sample_app/spec/views/users/new.html.erb_spec.rb
# No reason given
# ./spec/views/users/new.html.erb_spec.rb:4
Failures:
1) LayoutLinks should have a signup page at ''/signup''
Failure/Error: response.should have_selector(''title'', :content =>
"Sign up")
expected following output to contain a <title>Sign up</title>
tag:
<!DOCTYPE html>
<ht...