lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-15.2.0 vs lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-15.3.0
- old
+ new
@@ -8,9 +8,12 @@
<%- unless config.dig(:generate, :engine) -%>
require "<%= config.dig(:gem, :path) %>"
<%- end -%>
+GC.auto_compact = true
+GC.verify_compaction_references double_heap: true, toward: :empty
+
Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
RSpec.configure do |config|
config.color = true
config.disable_monkey_patching!