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