Skip to content

Commit

Permalink
Merge pull request #45882 from rails/short-inspect-on-test-case
Browse files Browse the repository at this point in the history
Stop gap solution for long output on test cases
  • Loading branch information
tenderlove committed Aug 24, 2022
1 parent 4d9b4b4 commit 4a1f224
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activesupport/lib/active_support/test_case.rb
Expand Up @@ -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

0 comments on commit 4a1f224

Please sign in to comment.