ma.gnolia

Sign In | Learn More

Skip to main content


assert{ 2.0 } - O'Reilly Ruby assert{ 2.0 } - O'Reilly Ruby

  • Not rated yet.
  • Copy Bookmark

Phlip likea developer tests, but he doesn’t like the primitive assertions - assert_equal, assert_match, assert_not_nil, etc. They only exist for one reason - to print out their input values when they fail. And they don’t even reflect their variable names. So Phlip wrote an assertion to replace all of them. Put whatever you want into it; it prints out your expression, and all its values.

Nobody else in Ma.gnolia has this bookmark.

1 group has this bookmark in their collection

Name Title Rating When
8996_32 Ruby On Rails assert{ 2.0 } - O'Reilly Ruby
Not rated yet.
February 15, 2008

Phlip likea developer tests, but he doesn’t like the primitive assertions - assert_equal, assert_match, assert_not_nil, etc. They only exist for one reason - to print out their input values when they fail. And they don’t even ...