# frozen_string_literal: true module RuboCop module Cop module RSpec # Checks that memoized helper names use the configured style. # # @example EnforcedStyle: snake_case (default) # # bad # let(:userName) { 'Adam' } # subject(:userName) { 'Adam' } # # # good # let(:user_name) { 'Adam' } # subject(:user_name) { 'Adam' } # # @example EnforcedStyle: camelCase # # bad # let(:user_name) { 'Adam' } # subject(:user_name) { 'Adam' } # # # good # let(:userName) { 'Adam' } # subject(:userName) { 'Adam' } class VariableName < Cop include ConfigurableNaming include RuboCop::RSpec::Variable MSG = 'Use %