File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def marshal_load(vars)
76
76
end
77
77
end
78
78
79
- def self . with_default_apply_strategy ( strict : true )
79
+ def self . with_default_strategy ( strict : true )
80
80
Module . new do
81
81
def self . included ( host_class )
82
82
host_class . extend OnDSL
@@ -105,6 +105,6 @@ def self.included(host_class)
105
105
end
106
106
107
107
def self . included ( host_class )
108
- host_class . include with_default_apply_strategy
108
+ host_class . include with_default_strategy
109
109
end
110
110
end
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def expire
68
68
69
69
it "should ignore missing apply method based on a default non-strict apply strategy" do
70
70
klass =
71
- Class . new { include AggregateRoot . with_default_apply_strategy ( strict : false ) }
71
+ Class . new { include AggregateRoot . with_default_strategy ( strict : false ) }
72
72
order = klass . new
73
73
spanish_inquisition = Orders ::Events ::SpanishInquisition . new
74
74
expect { order . apply ( spanish_inquisition ) } . to_not raise_error
@@ -111,7 +111,7 @@ def custom_expired(_event)
111
111
end
112
112
113
113
it "ruby 2.7 compatibility" do
114
- klass = Class . new { include AggregateRoot . with_default_apply_strategy }
114
+ klass = Class . new { include AggregateRoot . with_default_strategy }
115
115
116
116
# This is just a way to ensure that the AggregateMethods was included on
117
117
# the klass directly, not that it was an include to the anonymous module.
You can’t perform that action at this time.
0 commit comments