diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-08-31 13:21:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 13:21:07 -0400 |
commit | 6236cb7e6ad8bc18af2c3dc0118708d3e456bdce (patch) | |
tree | fe9a7f859182b7753433f20e673ef856fee12d8b /activesupport/lib | |
parent | 84efde740dc357de3ace08b2f2fd7a4a67dbd9bd (diff) | |
parent | 392d03a2920707dd44f9dfb5d6d0348ee701579e (diff) | |
download | rails-6236cb7e6ad8bc18af2c3dc0118708d3e456bdce.tar.gz rails-6236cb7e6ad8bc18af2c3dc0118708d3e456bdce.tar.bz2 rails-6236cb7e6ad8bc18af2c3dc0118708d3e456bdce.zip |
Merge pull request #26332 from y-yagi/use_specified_message_in_assert_changes
use `message` that specified in argument to error message
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/testing/assertions.rb | 2 |
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 |