File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def setup
6
6
end
7
7
8
8
def teardown
9
- Prosopite . allow_stack_paths = nil
9
+ Prosopite . allow_stack_paths = [ ]
10
10
Prosopite . ignore_queries = nil
11
11
Prosopite . enabled = true
12
12
end
@@ -101,9 +101,9 @@ def test_preloader_loop
101
101
102
102
Prosopite . scan
103
103
104
- preloader = ActiveRecord ::Associations ::Preloader . new
104
+ preloader = ActiveRecord ::Associations ::Preloader
105
105
Chair . last ( 20 ) . map do |chair |
106
- preloader . preload ( chair , : legs)
106
+ preloader . new ( records : [ chair ] , associations : [ : legs] ) . call
107
107
chair . legs
108
108
end
109
109
@@ -144,7 +144,7 @@ def test_scan_with_block_when_not_enabled
144
144
# 20 chairs, 4 legs each
145
145
chairs = create_list ( :chair , 20 )
146
146
chairs . each { |c | create_list ( :leg , 4 , chair : c ) }
147
-
147
+
148
148
Prosopite . enabled = false
149
149
150
150
Prosopite . scan do
You can’t perform that action at this time.
0 commit comments