From b17f499d8c148d95cbbc2d7e98e3398890872b92 Mon Sep 17 00:00:00 2001 From: Michael Mior Date: Tue, 28 Jul 2020 16:46:49 -0400 Subject: [PATCH] Fix frozen class name strings in newer Rubies --- lib/nose/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nose/util.rb b/lib/nose/util.rb index 5b6e2834..e43d7ea7 100644 --- a/lib/nose/util.rb +++ b/lib/nose/util.rb @@ -150,7 +150,7 @@ def subtype_name(name_case: :snake) # Convert camel case class names to an array # @return [Array] def name_array(cls) - frozen_name = cls.name + frozen_name = cls.name.dup frozen_name.gsub!(/^.*::/, '') frozen_name.gsub!('ID', 'Id') frozen_name.freeze