lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.26.1 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.27.0

- old
+ new

@@ -46,15 +46,20 @@ # expect(user.name).to eq("John") # expect(user.age).to eq(22) # end # end # - # @example configuration - # # .rubocop.yml - # # RSpec/MultipleExpectations: - # # Max: 2 + # @example `Max: 1` (default) + # # bad + # describe UserCreator do + # it 'builds a user' do + # expect(user.name).to eq("John") + # expect(user.age).to eq(22) + # end + # end # - # # not flagged by rubocop + # @example `Max: 2` + # # good # describe UserCreator do # it 'builds a user' do # expect(user.name).to eq("John") # expect(user.age).to eq(22) # end