Skip to content

Instantly share code, notes, and snippets.

@modsognir
Created August 31, 2011 10:04
Show Gist options
  • Select an option

  • Save modsognir/1183223 to your computer and use it in GitHub Desktop.

Select an option

Save modsognir/1183223 to your computer and use it in GitHub Desktop.
RSpec.configure do |config|
counter = -1
config.after(:each) do
counter += 1
if counter > 9
GC.enable
GC.start
GC.disable
counter = 0
end
end
config.after(:suite) do
counter = 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment