4 ms·
I’m testing the message. So that the (in this case) `.where` was called and with the right parameters... I trust ActiveRecord with the rest, and I don’t want to
by gingerlime 7y ago
I’m testing the message. So that the (in this case) `.where` was called and with the right parameters... I trust ActiveRecord with the rest, and I don’t want to hit the DB.
I can’t simply use `expect(...).to receive(:where)`... even if I only cared that some `.where` was called...