Skip to content

Commit

Permalink
Fix frozen class name strings in newer Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Jul 28, 2020
1 parent 1f53208 commit b17f499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nose/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def subtype_name(name_case: :snake)
# Convert camel case class names to an array
# @return [Array<String>]
def name_array(cls)
frozen_name = cls.name
frozen_name = cls.name.dup
frozen_name.gsub!(/^.*::/, '')
frozen_name.gsub!('ID', 'Id')
frozen_name.freeze
Expand Down

0 comments on commit b17f499

Please sign in to comment.