[rspec-users] testing an action which requires picture

David Chelimsky dchelimsky at gmail.com
Wed Nov 12 08:40:21 EST 2008

On Wed, Nov 12, 2008 at 3:18 AM, Mano ah <lists at ruby-forum.com> wrote:
> How can i test the action of a controller which requires picture?
> I mean, as part of the test I want to pass a picture (somekind of
> fixture) and test to see if the result is correct

I'm pretty sure you're looking for this:


You can use fixture_file_upload with rspec-rails. In fact, you can use
any of rails' test/unit helpers and extensions when working with

More information about the rspec-users mailing list