aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-08-31 08:47:48 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-08-31 08:52:23 +0900
commit392d03a2920707dd44f9dfb5d6d0348ee701579e (patch)
tree00db08a3afe8b259c419ca7b1903ee4301b2e597 /activesupport/lib
parentb7ec47aa8fa0ba82b092e0965771974a14045d92 (diff)
downloadrails-392d03a2920707dd44f9dfb5d6d0348ee701579e.tar.gz
rails-392d03a2920707dd44f9dfb5d6d0348ee701579e.tar.bz2
rails-392d03a2920707dd44f9dfb5d6d0348ee701579e.zip
use `message` that specified in argument to error message
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/testing/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/assertions.rb b/activesupport/lib/active_support/testing/assertions.rb
index 8c9ea2c0e8..28cf2953bf 100644
--- a/activesupport/lib/active_support/testing/assertions.rb
+++ b/activesupport/lib/active_support/testing/assertions.rb
@@ -159,7 +159,7 @@ module ActiveSupport
error = "#{message}.\n#{error}" if message
assert_not_equal before, after, error
else
- message = "#{expression.inspect} didn't change to #{to}"
+ error = "#{expression.inspect} didn't change to #{to}"
error = "#{message}.\n#{error}" if message
assert to === after, error
end