Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Some assertions for the testing of ActionView::TestCase are worthless

#3468

In view/test_case_test.rb there are several assertions of this form:

assert 'Holla!', from_shared_helper

How useful is that?!

Attached is a patch that makes more meaningful assertions. For example:

assert_equal 'Holla!', from_shared_helper

The patch applies to 2-3-stable.

For those following along, the good news is that after strengthening the assertions, all tests still pass. At least on 2-3-stable.

Reported by Chris Hapgood · November 6th, 2009 @ 10:35 PM

State: resolved
Milestone: 2.3.6
Assigned to: Eloy Duran Eloy Duran
Importance: none

Activity

  1. Chris Hapgood
    Chris Hapgood

    Looks like I doubled up the original patch. Here is the proper one.

    November 6th, 2009 @ 10:38 PM

  2. Eloy Duran
    Eloy Duran
    • State changed from new to verified
    • Milestone set to 2.3.6
    • Assigned user set to Eloy Duran

    Yup, they're worthless. Applied them in our repo, which will be merged in the main repo in a short while. http://github.com/Fingertips/rails/commit/df9a47e4b8f12a8ecf3001a93...

    Gonna look at your other ticket now, thanks.

    November 6th, 2009 @ 11:01 PM

  3. Repository
    Repository
    • State changed from verified to resolved

    November 8th, 2009 @ 10:17 PM

  4. Repository