Skip to content

Commit

Permalink
fix failing spec/rubocop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jamal.mohamed committed Dec 20, 2023
1 parent 05a2b25 commit 29483a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/helpers/deprecated_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ def self.const_missing(const_name)
Object.const_get("Faker::#{new_class}")
end

class Movies #capture the const_missing look up from the nested class
class Movies
def self.const_missing(const_name)
Faker.const_missing("Movies::#{const_name}")
end
end

class DeprecatedClass
# rubocop:disable Lint/SymbolConversion
def self.names
{
'IDNumber': 'IdNumber',
'Movies::HarryPotterDeprecated': 'Movies::HarryPotter'
}
end
# rubocop:enable Lint/SymbolConversion
end
end

0 comments on commit 29483a4

Please sign in to comment.