Forum: RSpec rspec failure upon revisit

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9c71e59afc821cba1dbfc6aadc8a6c49?d=identicon&s=25 Drew D. (Guest)
on 2012-11-06 20:42
I just returned from a different project after taking a few weeks off of
my tutorial.  I'm using Ruby on Rails 3 Tutorial - Learn Rails by
Example by Michael H..

After rebooting my server I ran an rspec spec/ command to check to see
if there were any problems and this is what I received.  I didn't modify
anything except I did overwrite users_controller.rb and
users_controller_spec.rb when starting another chapter of the tutorial.
I'm not sure what changed.

I'm having trouble diagnosing the error:

  UsersHelper add some examples to (or delete)
    # No reason given
    # ./spec/helpers/users_helper_spec.rb:14
  User add some examples to (or delete)
    # No reason given
    # ./spec/models/user_spec.rb:4
  users/new.html.erb add some examples to (or delete)
    # No reason given
    # ./spec/views/users/new.html.erb_spec.rb:4


  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>
       <!DOCTYPE html>
       <meta http-equiv="Content-Type" content="text/html;
       <title>Ruby on Rails Tutorial Sample App | </title>
       <!--[if lt IE 9]>
       <![endif]--><link href="/assets/blueprint/screen.css"
media="screen" rel="stylesheet" type="text/css">
       <link href="/assets/blueprint/print.css" media="print"
rel="stylesheet" type="text/css">
       <!--[if lt IE8]><link href="/assets/blueprint/ie.css"
media="screen" rel="stylesheet" type="text/css" /><![endif]--><link
href="/assets/custom.css" media="screen" rel="stylesheet"
           <div class="container">
             <header><a href="/"><img alt="Sample App" class="round"
         <nav class="round"><ul>
       <li><a href="/">Home</a></li>
             <li><a href="/help">Help</a></li>
             <li><a href="#">Sign in</a></li>
           </ul></nav></header><section class="round"><h1>Users#new</h1>
       <p>Find me in app/views/users/new.html.erb</p>

             </section><footer><nav class="round"><ul>
       <li><a href="/about">About</a></li>
             <li><a href="/contact">Contact</a></li>
             <li><a href="">Rails
     # ./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 to be searching for a signup page
that doesn't exist (?).

Please reply if you have a chance.  Thanks, Andrew
9c71e59afc821cba1dbfc6aadc8a6c49?d=identicon&s=25 Drew D. (Guest)
on 2012-11-07 16:35
I found the issue was case sensitivity 'Sign up' vs. 'Sign Up'
This topic is locked and can not be replied to.