On Wed, Nov 12, 2008 at 3:18 AM, Mano ah <[EMAIL PROTECTED]> 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: http://api.rubyonrails.com/classes/ActionController/TestProcess.html#M000229 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 rspec-rails. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users