File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,24 @@ module RailsEventStore
16
16
17
17
specify "ancestors" do
18
18
with_test_handler do |handler |
19
- ancestors = handler . ancestors
19
+ base_modules = handler . included_modules
20
20
handler . prepend AsyncHandler
21
21
22
- expect ( handler . ancestors - ancestors ) . to have_attributes ( size : 2 )
22
+ expect ( handler . included_modules - base_modules ) . to have_attributes ( size : 2 )
23
23
end
24
24
25
25
with_test_handler do |handler |
26
- ancestors = handler . ancestors
26
+ base_modules = handler . included_modules
27
27
handler . prepend AsyncHandler . with_defaults
28
28
29
- expect ( handler . ancestors - ancestors ) . to have_attributes ( size : 1 )
29
+ expect ( handler . included_modules - base_modules ) . to have_attributes ( size : 1 )
30
30
end
31
31
32
32
with_test_handler do |handler |
33
- ancestors = handler . ancestors
33
+ base_modules = handler . included_modules
34
34
handler . prepend AsyncHandler . with ( event_store_locator : -> { another_event_store } )
35
35
36
- expect ( handler . ancestors - ancestors ) . to have_attributes ( size : 1 )
36
+ expect ( handler . included_modules - base_modules ) . to have_attributes ( size : 1 )
37
37
end
38
38
end
39
39
You can’t perform that action at this time.
0 commit comments