Fix method redefined warning

This commit is contained in:
Benjamin Fleischer 2017-01-06 12:38:23 -06:00
parent ef19a9e703
commit 40489fa8a2

View File

@ -67,6 +67,7 @@ class SerializerGeneratorTest < Rails::Generators::TestCase
yield yield
ensure ensure
String.class_eval do String.class_eval do
undef_method :safe_constantize
alias_method :safe_constantize, :old alias_method :safe_constantize, :old
undef_method :old undef_method :old
end end