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 553793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:38:32+00:00 2026-05-13T11:38:32+00:00

When running Rails unit tests I get output specifying line numbers and methods when

  • 0

When running Rails unit tests I get output specifying line numbers and methods when a test fails, e.g.:

  1) Failure:
test_05_photo_tag_add_remove(TC_javascript02Test)
    [./helper/helper.rb:6:in `handle_assert'
     ./helper/helper.rb:17:in `check_not_string'
     ./helper/helper.rb:134:in `check_for_ajax_remove_string'
     javascript.rb:39:in `test_05_photo_tag_add_remove']:
<false> is not true.

Is it possible to dd my own text to this stack?

Thanks in advance
Peter

  • 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-13T11:38:32+00:00Added an answer on May 13, 2026 at 11:38 am

    Most assertions take a message parameter, for example:

    assert_equal 64, obj.size, "Size should be 64"
    

    If the assertion fails, the message will be displayed in addition to the usual test output.

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

Sidebar

Ask A Question

Stats

  • Questions 524k
  • Answers 524k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your config variable contains the <Response> element itself. Calling config.Element("Response")… May 16, 2026 at 10:03 pm
  • Editorial Team
    Editorial Team added an answer Since you are using .NET 3.5 and though it might… May 16, 2026 at 10:03 pm
  • Editorial Team
    Editorial Team added an answer You can create Comment model that has polymorphic association: #… May 16, 2026 at 10:03 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've been trying to get RSpec running under Ruby 1.9, and my tests just
The usual sob story: my tests are running slowly. My first thought was to
I'm learning how unit testing is done in Rails, and I've run into a
I'm currently running a Rails migration where I am adding a datatype specific to
When running Rails 3 RC with Ruby 1.9.2.rc2 under RVM I keep getting a
I have Rails 3 application (running Rails RC1), and I have the following controller:
I am running rails 3.0.0, rspec-rails 2.0.0.beta.20, webrat 0.7.2.beta.1, cucumber-rails 0.3.2 I have this
We are currently running rails 2.1. My main motivation for the upgrade is the
I'm using rvm (Ruby Version Manager) and running Rails 3 RC. I need to
I read where you can have Ruby on Rails running in WebSphere and I

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.