Topic: assert_flash regular expression

How would I do a regular expression with assert_flash?

I know I can do this:

assert flash[:notice]=~ /Can not delete/

but was wondering if there's a way to do it with assert_flash...

Re: assert_flash regular expression

I think it will do it automatically if you provide a regexp.

assert_flash :notice, /Can not delete/

Railscasts - Free Ruby on Rails Screencasts