Nicholas Wieland wrote:
> Does someone have an example on faking a file upload for just ensuring
> it gets called, without actually uploading the file to s3.
> I thought that stubbing Model.has_attached_file would be enough, but
> it doesn't seem so ...
>
> This is what I did:
>
> Video.stub!( :h
Nicholas Wieland wrote:
> Does someone have an example on faking a file upload for just ensuring
> it gets called, without actually uploading the file to s3.
> I thought that stubbing Model.has_attached_file would be enough, but
> it doesn't seem so ...
>
> This is what I did:
>
> Video.stub!( :h
On 2009-01-17, at 05:10, Fernando Perez wrote:
G'day again Fernando. IIRC, Paperclip's #save_attached_files is what
takes care of saving the attachment to disk, uploading it to S3, etc.
Here's a small gist that tests the allowance of JPG files, and
ensures
that the file isn't saved [to disk, f
> G'day again Fernando. IIRC, Paperclip's #save_attached_files is what
> takes care of saving the attachment to disk, uploading it to S3, etc.
> Here's a small gist that tests the allowance of JPG files, and ensures
> that the file isn't saved [to disk, for me]:
> http://gist.github.com/48264
>
>
On 2009-01-16, at 17:42, Fernando Perez wrote:
Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just
ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
Nicholas Wieland wrote:
> Does someone have an example on faking a file upload for just ensuring
> it gets called, without actually uploading the file to s3.
> I thought that stubbing Model.has_attached_file would be enough, but
> it doesn't seem so ...
>
> This is what I did:
>
> Video.stub!( :h
Rick Denatale wrote:
> On Mon, Jun 9, 2008 at 8:18 AM, Nicholas Wieland
> <[EMAIL PROTECTED]>
> wrote:
>
>>>
>>
>> I haven't been clear enough, my point is not to fake the file upload
>> (there's also fixture_file_upload for that) but to fake the receiver, making
>> it dumb enough to avoid perfor
On Mon, Jun 9, 2008 at 8:18 AM, Nicholas Wieland <[EMAIL PROTECTED]>
wrote:
> Il giorno 09/giu/08, alle ore 14:11, David Chelimsky ha scritto:
>
> On Jun 9, 2008, at 7:05 AM, Nicholas Wieland wrote:
>>
>> Does someone have an example on faking a file upload for just ensuring it
>>> gets called
>
Il giorno 09/giu/08, alle ore 14:11, David Chelimsky ha scritto:
On Jun 9, 2008, at 7:05 AM, Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just
ensuring it gets called
http://talklikeaduck.denhaven2.com/articles/2008/04/18/rails-integration-test-file-uploa
On Jun 9, 2008, at 7:05 AM, Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just
ensuring it gets called
http://talklikeaduck.denhaven2.com/articles/2008/04/18/rails-integration-test-file-upload-plugin
Cheers,
David
___
Does someone have an example on faking a file upload for just ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
This is what I did:
Video.stub!( :has_attached_file ).with( :name ).an
11 matches
Mail list logo