It doesn't work that way, you have to make an expectation on the side effect of that action, as the object you are making the 'receive' expectation on is different from the object that will be returned by 'find' in the controller. You can check '.object_id' to make sure.
I suggest you to check that the number of alive users has changed. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/20200413043400.5840974.54103.1866%40gmail.com.
