Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:40:15+00:00 2026-05-22T18:40:15+00:00

I am doing the example app from the Ruby on Rails 3 tutorial book.

  • 0

I am doing the example app from the Ruby on Rails 3 tutorial book. I have setup 5 rspec tests to test if there are specific links on the homepage and they point to the right places. 4 of the 5 tests pass but the last one does not. It says:

Failures:
  1) LayoutLinks should have the right links on the layout
     Failure/Error: click_link "Sign up now!"
     Could not find link with text or title or id "Sign up now!"
     # ./spec/requests/layout_links_spec.rb:40:in `block (2 levels) in <top (required)>'

The problem is that I have a link with anchor text “Sign up now!”. All the other tests that test for links pass. Is there any other reason this would be failing?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:40:15+00:00Added an answer on May 22, 2026 at 6:40 pm

    It would probably help to know that the click_link function actually visits that page. Since the “Sign up now!” button is only visible from the “Home” page, the “Home” test has to be immediately before the “Sign up now!” test.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing a one-way data transfer app from MS Access to a Rails
I have a Ruby/Rails app. I have an artists table in my postgresql database
What are the things that Medium Trust stops you from doing? For example, I've
I have a Rails app with some basic models. The website displays data retrieved
I just updated an app from .NET 2.0 to .NET 4.0 and I have
After comming from Ruby world, I'm having little problems doing TDD in Java. The
Sorry if repost I’m new to JSP. I’m following a tutorial from a book,
I'm doing maintenance on an old rails app, and my rails wasn't that great
i'm using this example implementation found at http://tangentsoft.net/wskfaq/examples/basics/select-server.html This is doing most of what
What tools allows me keep track of tags when doing web development? For example,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.