Skip to content

Commit 51c947f

Browse files
committed
ancestors -> included_modules
1 parent 56f1ee4 commit 51c947f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rails_event_store/spec/async_handler_helpers_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ module RailsEventStore
1616

1717
specify "ancestors" do
1818
with_test_handler do |handler|
19-
ancestors = handler.ancestors
19+
base_modules = handler.included_modules
2020
handler.prepend AsyncHandler
2121

22-
expect(handler.ancestors - ancestors).to have_attributes(size: 2)
22+
expect(handler.included_modules - base_modules).to have_attributes(size: 2)
2323
end
2424

2525
with_test_handler do |handler|
26-
ancestors = handler.ancestors
26+
base_modules = handler.included_modules
2727
handler.prepend AsyncHandler.with_defaults
2828

29-
expect(handler.ancestors - ancestors).to have_attributes(size: 1)
29+
expect(handler.included_modules - base_modules).to have_attributes(size: 1)
3030
end
3131

3232
with_test_handler do |handler|
33-
ancestors = handler.ancestors
33+
base_modules = handler.included_modules
3434
handler.prepend AsyncHandler.with(event_store_locator: -> { another_event_store })
3535

36-
expect(handler.ancestors - ancestors).to have_attributes(size: 1)
36+
expect(handler.included_modules - base_modules).to have_attributes(size: 1)
3737
end
3838
end
3939

0 commit comments

Comments
 (0)