Skip to content

Commit ee6226d

Browse files
bf4GregPK
authored andcommitted
Fix method redefined warning
1 parent 22d66a9 commit ee6226d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/generators/serializer_generator_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def stub_safe_constantize(expected:)
6767
yield
6868
ensure
6969
String.class_eval do
70+
undef_method :safe_constantize
7071
alias_method :safe_constantize, :old
7172
undef_method :old
7273
end

0 commit comments

Comments
 (0)