expect multiple changes

it do
  expect {
    subject.run
  }.to change { AnyModel1.count }.by(1)
  .and change { AnyModel2.count }.by(1)
  .and AnyCounter.by(1)
  .change(Counter, :count).by(1)
end

Reference

results matching ""

    No results matching ""