Commit: e8987c3 by @josevalim seems to have broken shared_examples_for in rspec. When using a shared_example the name of the class in TestCase#determine_default_helper_class (https://github.com/rails/rails/blob/e8987c30d0dc3ae5903a6d3a6e293641759b6fc4/actionpack/lib/action_view/test_case.rb#L56) is of the form "#Class:0x7b8b718b::Nested_1" which raises:
wrong constant name "#<Class:0x7b8b718b>::Nested_1"
And safe_constantize only handles name errors of the form "uninitialized constant".
safe_constantize should handle wrong constant name NameErrors Fixes #…
Signed-off-by: José Valim <email@example.com>