Mark Dodwell | 16 May 19:48

Mocking Plugins


I'm using rspec on a current rails project and one of the plugins I'm
using (Paperclip) uploads file attachments for a model to S3. This
obviously slows the tests down somewhat, and I would like to remove this
altogether by stubbing -- the question is what should I be stubbing?

Should I stub the upload method in the plugin class or do it in the
model class?

Any advice?

Thanks,

~ Mark
--

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane