File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def apply_order_expired(_event)
87
87
expect { order . apply ( spanish_inquisition ) } . not_to raise_error
88
88
end
89
89
90
- it "include with_strategy should warn about depracations " do
90
+ it "include with_strategy should warn about deprecations " do
91
91
expect {
92
92
Class . new { include AggregateRoot . with_strategy ( -> { AggregateRoot ::DefaultApplyStrategy . new ( strict : false ) } ) }
93
93
} . to output ( <<~EOW ) . to_stderr
@@ -139,12 +139,9 @@ def custom_expired(_event)
139
139
expect ( order . status ) . to eq :created
140
140
end
141
141
142
- it "ruby 2.7 compatibility " do
143
- klass = Class . new { include AggregateRoot . with_default_apply_strategy }
142
+ it "included modules " do
143
+ klass = silence_warnings { Class . new { include AggregateRoot . with_default_apply_strategy } }
144
144
145
- # This is just a way to ensure that the AggregateMethods was included on
146
- # the klass directly, not that it was an include to the anonymous module.
147
- # This test can be removed when ruby 2.7 will be no longer supported.
148
145
expect ( klass . included_modules [ 0 ] ) . to eq ( AggregateRoot ::AggregateMethods )
149
146
end
150
147
You can’t perform that action at this time.
0 commit comments