Skip to content

Commit 88c12a7

Browse files
Remove obsolete assert_not_deprecated
Follow-up to e9bc620 and 3ec6297. `assert_not_deprecated` without any arguments will test against `ActiveSupport::Deprecation.instance`, whereas `Enumerable#sum` would use `ActiveSupport.deprecator`. However, the `Enumerable#sum` override was removed in 3ec6297, so we can simply remove `assert_not_deprecated`.
1 parent 62e3614 commit 88c12a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

activesupport/test/core_ext/enumerable_test.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ def test_array_sums
205205
end
206206
assert_equal SummablePayment.new(20), payments.sum(SummablePayment.new(0)) { |p| p }
207207

208-
assert_not_deprecated do
209-
assert_equal Money.new(3), [Money.new(1), Money.new(2)].sum
210-
end
208+
assert_equal Money.new(3), [Money.new(1), Money.new(2)].sum
211209

212210
sum = [3, 5.quo(1)].sum
213211
assert_typed_equal(8, sum, Rational)

0 commit comments

Comments
 (0)