lib/active_support/testing/assertions.rb in activesupport-6.1.4.7 vs lib/active_support/testing/assertions.rb in activesupport-6.1.5

- old
+ new

@@ -187,10 +187,10 @@ after = exp.call error = "#{expression.inspect} didn't change" error = "#{error}. It was already #{to}" if before == to error = "#{message}.\n#{error}" if message - assert_not_equal before, after, error + refute_equal before, after, error unless to == UNTRACKED error = "Expected change to #{to}\n" error = "#{message}.\n#{error}" if message assert to === after, error