Rspec failure upon revisit

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:

Pending:
UsersHelper add some examples to (or delete)
/Users/andrewchickedantz/rails_projects/sample_app/spec/helpers/users_helper_spec.rb
# No reason given
# ./spec/helpers/users_helper_spec.rb:14
User add some examples to (or delete)
/Users/andrewchickedantz/rails_projects/sample_app/spec/models/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 Sign up
    tag:





    Sample App

    Users#new


    Find me in app/views/users/new.html.erb

             </section><footer><nav class="round"><ul>
       <li><a href="/about">About</a></li>
             <li><a href="/contact">Contact</a></li>
             <li><a
    

    href=“http://news.railstutorial.org/”>News…

  2. Rails
    Tutorial





# ./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

I found the issue was case sensitivity ‘Sign up’ vs. ‘Sign Up’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service