Displaying 3 results from an estimated 3 matches for "layout_links_spec".
2011 Jun 09
0
failing integration test
I am following the Ruby on Rails tutorial here:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=2.3
I am at this section:
http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=2.3#code:layout_links_spec
Here is my layout_links_spec.rb:
require ''spec_helper''
describe "Layout links" do
it "should have a Home page at ''/''" do
get ''/''
response.should render_template(''pages/home'')
end
it "s...
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 :...
2012 Nov 06
2
rspec failure upon revisit
...rial.org/">News</a></li>...
<li><a href="http://www.railstutorial.org/">Rails
Tutorial</a></li>
</ul></nav></footer>
</div>
</body>
</html>
# ./spec/requests/layout_links_spec.rb:27:in `block (2 levels) in
<top (required)>''
Finished in 0.55049 seconds
17 examples, 1 failure, 3 pending
Failed examples:
rspec ./spec/requests/layout_links_spec.rb:25 # LayoutLinks should have
a signup page at ''/signup''
Is this something I can fix? Looks...