Fix frozen object inspect
In the rails/rails CI build for Ruby master we found that some tests were failing due to inspect on a frozen object being incorrect.
An object's instance variable count was incorrect when frozen causing the object's inspect to not splat out the object.
This fixes the issue and adds a test for inspecting frozen objects.
Co-Authored-By: Jemma Issroff jemmaissroff@gmail.com Co-Authored-By: Aaron Patterson tenderlove@ruby-lang.org
Fix frozen object inspect
In the rails/rails CI build for Ruby master we found that some tests
were failing due to inspect on a frozen object being incorrect.
An object's instance variable count was incorrect when frozen causing
the object's inspect to not splat out the object.
This fixes the issue and adds a test for inspecting frozen objects.
Co-Authored-By: Jemma Issroff jemmaissroff@gmail.com
Co-Authored-By: Aaron Patterson tenderlove@ruby-lang.org