This project is archived and is in readonly mode.

#121 ✓invalid
Nathan Wilmes

Add assert_showing_flash

Reported by Nathan Wilmes | May 6th, 2008 @ 02:12 AM

This assertion is designed to help people test their use of flash and flash.now - and will give sensible errors if they use the wrong one.

Flash.now in particular is really hard to test in any other way. This patch allows flash.now data to be accessed through a new method called 'swept', which collects all of the flash data that has been displayed and swept away from future requests.

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

Pages