From 6582c7c54a4be7275ea9df5c787d8e686f74b618 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 29 Aug 2016 09:05:32 +0900 Subject: use `inspect` for show `from` value If `from` is nil, in order to avoid the blank is showed. --- activesupport/lib/active_support/testing/assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/testing/assertions.rb b/activesupport/lib/active_support/testing/assertions.rb index 6a6941c72a..8c9ea2c0e8 100644 --- a/activesupport/lib/active_support/testing/assertions.rb +++ b/activesupport/lib/active_support/testing/assertions.rb @@ -147,7 +147,7 @@ module ActiveSupport retval = yield unless from == UNTRACKED - error = "#{expression.inspect} isn't #{from}" + error = "#{expression.inspect} isn't #{from.inspect}" error = "#{message}.\n#{error}" if message assert from === before, error end -- cgit v1.2.3