lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -13,10 +13,10 @@
#
# # good
# it 'validates users' do
# expect([user1, user2, user3]).to all(be_valid)
# end
- class IteratedExpectation < Cop
+ class IteratedExpectation < Base
MSG = 'Prefer using the `all` matcher instead ' \
'of iterating over an array.'
def_node_matcher :each?, <<-PATTERN
(block