Trevor Turk
未读,2009年1月16日 17:19:542009/1/16登录即可回复作者
登录即可转发
您无权在此群组中删除帖子
请登录以举报消息
要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子
收件人 Paperclip Plugin
I'm using Mocha to stub out calls to s3 in my regular tests like so:
Photo.any_instance.stubs(:save_attached_files).returns(true)
In my case, I have a Photo model with an "image" attachment.
This seems to work well enough. I also have real tests that I run
manually with a rake task.
I'm wondering if anyone has thoughts on this approach. I also hope
this might come in handy for other people trying to do the same thing.
Google wasn't too kind in my search for an easy solution :)
- Trevor