# frozen_string_literal: true module RuboCop module Cop module RSpec # Checks that memoized helpers names are symbols or strings. # # @example EnforcedStyle: symbols (default) # # bad # let('user_name') { 'Adam' } # subject('user') { create_user } # # # good # let(:user_name) { 'Adam' } # subject(:user) { create_user } # # @example EnforcedStyle: strings # # bad # let(:user_name) { 'Adam' } # subject(:user) { create_user } # # # good # let('user_name') { 'Adam' } # subject('user') { create_user } class VariableDefinition < Cop include ConfigurableEnforcedStyle include RuboCop::RSpec::Variable MSG = 'Use %