Created
March 2, 2010 21:40
-
-
Save johnreilly/319986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: test_helper.rb | |
class ActiveSupport::TestCase | |
... | |
end | |
### Stub out post-processing on each class that uses paperclip | |
### (Uses an application configuration to turn on the slow processing again, if desired.) | |
if APP_CONFIG[:override_paperclip_processing] | |
[Canvas, Message, PictureAsset, User].each do |klass| | |
klass.send(:before_post_process, Proc.new {|image| false}) | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment