RSpec: Expect to change multiple
In RSpec 3 you can setup multiple conditions at once (so the single expectation rule is not broken). It would look sth like: expect { click_button ‘Save’ @user.reload }.to change { @user.name }.from(‘donald’).to(‘gustav’) .and change { @user.updated_at }.by(4) .and change { @user.great_field }.by_at_least(23} .and change { @user.encrypted_password } It is not a complete solution though … Read more