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 assert_showing_flash

#121

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.

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

State: invalid
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. Nathan Wilmes
  2. josh
    josh
    • 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

    May 8th, 2008 @ 06:25 AM