This project is archived and is in readonly mode.
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
-
josh May 8th, 2008 @ 06:25 AM
- State changed from new to invalid
- Assigned user set to josh
Implementation seems a bit much. Is there anyway we can get this "flash.now["test_now"] = ">#{flash["test_now"]}<"" api as well? I rather not add yet another "assert_" method.
Can you please follow up on 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>