This file contains hidden or 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
# place in <app root>/spec/support | |
RSpec.configure do |config| | |
# from https://gist.github.com/1121972 | |
config.before(:suite) { GC.disable } | |
config.after(:suite) { GC.enable } | |
$example_counter = 0 |
This file contains hidden or 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
# inspired by https://gist.github.com/406460 and | |
# http://pivotallabs.com/users/rolson/blog/articles/1249-stubbing-out-paperclip-imagemagick-in-tests | |
# plus some additional monkeypatching to prevent "too many files open" err's | |
# | |
# place this file in <app root>/spec/support | |
# | |
RSpec.configure do |config| | |
$paperclip_stub_size = "800x800" | |
end |