From 4a1f22474bde75f74093547223937f4b6516b077 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 24 Aug 2022 13:45:51 -0700 Subject: [PATCH] Merge pull request #45882 from rails/short-inspect-on-test-case Stop gap solution for long output on test cases --- activesupport/lib/active_support/test_case.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index a2b205c14bb88..2df7b8033d483 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -147,5 +147,9 @@ def parallelize_teardown(&block) alias :assert_not_same :refute_same ActiveSupport.run_load_hooks(:active_support_test_case, self) + + def inspect # :nodoc: + Object.instance_method(:to_s).bind_call(self) + end end end