Skip to content

Commit

Permalink
Remove GC hack
Browse files Browse the repository at this point in the history
I don't think it makes a difference in modern rubies. Let's see.
  • Loading branch information
David Rodríguez committed Mar 14, 2017
1 parent 359695a commit 59b1b3c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
7 changes: 0 additions & 7 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,6 @@
# see http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/
Rails.logger.level = 4

# Improves performance by forcing the garbage collector to run less often.
unless ENV['DEFER_GC'] == '0' || ENV['DEFER_GC'] == 'false'
require File.expand_path('../../../spec/support/deferred_garbage_collection', __FILE__)
Before { DeferredGarbageCollection.start }
After { DeferredGarbageCollection.reconsider }
end

Around '@silent_unpermitted_params_failure' do |scenario, block|
original = ActionController::Parameters.action_on_unpermitted_parameters
ActionController::Parameters.action_on_unpermitted_parameters = false
Expand Down
9 changes: 0 additions & 9 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,5 @@
# see http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/
Rails.logger.level = Logger::FATAL

# Improves performance by forcing the garbage collector to run less often.
unless ENV['DEFER_GC'] == '0' || ENV['DEFER_GC'] == 'false'
require 'support/deferred_garbage_collection'
RSpec.configure do |config|
config.before(:all) { DeferredGarbageCollection.start }
config.after(:all) { DeferredGarbageCollection.reconsider }
end
end

# Make input type=hidden visible
Capybara.ignore_hidden_elements = false
19 changes: 0 additions & 19 deletions spec/support/deferred_garbage_collection.rb

This file was deleted.

0 comments on commit 59b1b3c

Please sign in to comment.