does anyone know how the `.and` method in RSpec works?

does anyone know how the `.and` method in RSpec works? I’m struggling to find documentation :disappointed: (“and” is hard to search)
You already invited:

sogard

Upvotes from:

I've found this incredibly useful recently for things like:
 
expect {
click_button 'Update Child'
}.to change { second_child.appointments.count }.by(-second_child_appointment_count)
.and change { child.appointments.count }.by(second_child_appointment_count)

If you wanna answer this question please Login or Register