I use to have some asserts in the test that go:
assert flash.has_key?(:error), "Flash doesn't have an error message"
But now, flash gets erased before returned to the test. I'm guessing they added an extra stage on top of the method being tested, so it gets cleared before execution gets back to the test.
So, no more testing flash in rails!
No comments:
Post a Comment