lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.35.0 vs lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.36.0

- old
+ new

@@ -45,10 +45,11 @@ # let(:foo) { [] } # it { expect(foo).to be_empty } # end # class InstanceVariable < Cop - MSG = 'Replace instance variable with local variable or `let`.' + MSG = 'Avoid instance variables – use let, ' \ + 'a method call, or a local variable (if possible).' EXAMPLE_GROUP_METHODS = ExampleGroups::ALL + SharedGroups::ALL def_node_matcher :spec_group?, EXAMPLE_GROUP_METHODS.block_pattern