diff options
Diffstat (limited to 'spec/models/concerns/has_user_type_spec.rb')
-rw-r--r-- | spec/models/concerns/has_user_type_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/concerns/has_user_type_spec.rb b/spec/models/concerns/has_user_type_spec.rb index 54614ec2b21..effb588e55f 100644 --- a/spec/models/concerns/has_user_type_spec.rb +++ b/spec/models/concerns/has_user_type_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe User, feature_category: :system_access do - User::USER_TYPES.keys.each do |type| # rubocop:disable RSpec/UselessDynamicDefinition + User::USER_TYPES.each_key do |type| # rubocop:disable RSpec/UselessDynamicDefinition -- `type` used in `let` let_it_be(type) { create(:user, username: type, user_type: type) } end let(:bots) { User::BOT_USER_TYPES.map { |type| public_send(type) } } |