lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.9.0 vs lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.9.1
- old
+ new
@@ -5,12 +5,15 @@
require "simplecov"
SimpleCov.start { enable_coverage :branch }
<% end %>
require "<%= realm.project_name %>"
-<% if realm.build_refinements %>
- require "refinements"
+<% if realm.build_refinements %>require "refinements"<% end %>
+GC.auto_compact = true
+GC.verify_compaction_references double_heap: true, toward: :empty
+
+<% if realm.build_refinements %>
using Refinements::Pathnames
Pathname.require_tree __dir__, "support/shared_contexts/**/*.rb"
<% else %>