Hi,

Save file in /spec/fixtures/files

In controller like
 get 'update_logo', {id: id, business: { :logo =>
fixture_file_upload("/files/logo.jpg", 'image/jpg') }}

*Thanks & Regards,
*
*S.Arun*


On Mon, Jul 8, 2013 at 9:45 AM, Ankita@Adslot <[email protected]>wrote:

> I want to pass in current file name inside rspec code where in if the code
> fails, it would save a screen shot with the file name where it failed.
>
> Not sure how to pass current file name in rspec.
>
> Any help is really appreciated!
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/6973014d-ae1f-467e-b73c-ad02312cfa4a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CAMRum%3DyEq8yC_kwzRCbkeTN9tQ7UeApCsGQkVfuH99nzhiqEdw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to