We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fa553 commit 0ee2053Copy full SHA for 0ee2053
spec/spec_helper.rb
@@ -4,6 +4,12 @@
4
require 'yaml'
5
DatabaseCredentials = YAML.load_file('spec/configuration.yml')
6
7
+if GC.respond_to?(:verify_compaction_references)
8
+ # This method was added in Ruby 3.0.0. Calling it this way asks the GC to
9
+ # move objects around, helping to find object movement bugs.
10
+ GC.verify_compaction_references(double_heap: true, toward: :empty)
11
+end
12
+
13
RSpec.configure do |config|
14
config.disable_monkey_patching!
15
0 commit comments