RSpec expect change:
it "should increment the count" do
expect{Foo.bar}.to change{Counter.count}.by 1
end
Is there a way to expect change in two tables?
expect{Foo.bar}.to change{Counter.count}.by 1
and change{AnotherCounter.count}.by 1
question from:https://stackoverflow.com/questions/13616631/is-it-possible-for-rspec-to-expect-change-in-two-tables