a better way to write this would be expect{ list.add_task(@task) } .to change(:list, tasks).by(1)   (check syntax)
This way you are testing that it increments it instead of the total count (and its more succinct)