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.

Add basic assertions to core_ext

#119

The following patch defines a bunch of convenience assertions for general testing purposes. We've got assert_contains, assert_does_not_contain, assert_empty, assert_false/true (aliases), assert_array_contents_match, assert_includes (alias), assert_does_not_include (alias), and assert_not_contains (alias)

Reported by Nathan Wilmes · May 6th, 2008 @ 12:54 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. DHH
    DHH
    • State changed from new to invalid

    We used to have a very full-fledged set of assets, but cut them down because the value they offered wasn't worth the hassle of trying to figure out when to use what. assert array.empty?, "shouldn't be empty" works just as well as assert_empty, imo.

    May 6th, 2008 @ 08:57 PM

  2. Ryan Bigg
    Ryan Bigg
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    October 11th, 2010 @ 10:58 AM