Request specs flash

Hey,

Is there a way to test for flash content on a request spec (other than
to check the request body). I was trying to test something that
redirects so testing the content is not possible.

  • Toni

On Aug 23, 2010, at 11:38 AM, Toni T. wrote:

Hey,

Is there a way to test for flash content on a request spec (other than
to check the request body). I was trying to test something that
redirects so testing the content is not possible.

AFAIK, no. Request specs are built on rails’ integration tests, which
are built on rack-test, which I do not believe exposes the flash.

HTH,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs