File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
end
17
17
18
18
let ( :subscriber ) do
19
- Mongoid ::Clients . with_name ( :other ) . instance_variable_get ( :@ monitoring) . subscribers [ 'Command' ] . find do |s |
19
+ Mongoid ::Clients . with_name ( :other ) . send ( : monitoring) . subscribers [ 'Command' ] . find do |s |
20
20
s . is_a? ( EventSubscriber )
21
21
end
22
22
end
23
23
24
24
let ( :insert_events ) do
25
- subscriber . started_events . select { |event | event . command_name == : insert }
25
+ subscriber . started_events . select { |event | event . command_name == ' insert' }
26
26
end
27
27
28
28
let ( :update_events ) do
29
- subscriber . started_events . select { |event | event . command_name == : update }
29
+ subscriber . started_events . select { |event | event . command_name == ' update' }
30
30
end
31
31
32
32
context 'when a session is used on a model class' do
You can’t perform that action at this time.
0 commit comments