This project is archived and is in readonly mode.

#4691 ✓stale
Ben Orenstein

Use new assertion methods in test

Reported by Ben Orenstein | May 25th, 2010 @ 07:13 PM

This previous patch added two new assertions: assert_present and assert_blank.

My patch refactors several tests to use these new methods.

assert_blank foo is superior to assert foo.blank? because the former provides a more descriptive error message.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Tags

Pages