lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.28.0 vs lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.29.0
- old
+ new
@@ -45,10 +45,10 @@
# let(:foo) { [] }
# it { expect(foo).to be_empty }
# end
#
class InstanceVariable < Cop
- MSG = 'Use `let` instead of an instance variable.'.freeze
+ MSG = 'Replace instance variable with local variable or `let`.'.freeze
EXAMPLE_GROUP_METHODS = ExampleGroups::ALL + SharedGroups::ALL
def_node_matcher :spec_group?, EXAMPLE_GROUP_METHODS.block_pattern