16 May 19:48
Mocking Plugins
From: Mark Dodwell <rails-mailing-list@...>
Subject: Mocking Plugins
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 17:51:34 GMT
Subject: Mocking Plugins
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 17:51:34 GMT
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 -~----------~----~----~----~------~----~------~--~---
RSS Feed