Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Standup: 2/1/2010 – Speed up Paperclip tests; A fork of Spork that doesn't use fork


  • Speed up your tests that use Paperclip by putting the following in your spec_helper.rb. In a new project’s test suite this alone reduced the full suite run time from 25 to 5 seconds.
class Paperclip::Attachment
  def post_process; end
  • If you want to run Spork to speed up your tests, but aren’t running on a Ruby platform that supports Kernel.fork (like windows or JRuby) then Roger Pack’s Spork fork might work for you.

  1. Thanks! That prevented convert from being run, but you can take it further and prevent identify from running as well:

    class Paperclip::Attachment
    def post_process; end

    module Paperclip
    class << self def run(*args) “100×100″ end end end

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *