07-18-2023, 11:00 PM
I know how to specify that an object shouldn't receive a specific message:
expect(File).to_not receive(:delete)
How would I specify that it shouldn't receive any messages at all? Something like
expect(File).to_not receive_any_message
expect(File).to_not receive(:delete)
How would I specify that it shouldn't receive any messages at all? Something like
expect(File).to_not receive_any_message