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