Created
May 8, 2018 09:13
-
-
Save stevo/7f0b57b31285a1db3f660b71bbb59f6e to your computer and use it in GitHub Desktop.
An opinionated guide to readable RSpec (part 2 of 2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow(UserNotifier).to receive(:deletion_notification) | |
DestroyUser.call(user) | |
expect(UserNotifier).to have_received(:deletion_notification).with(user, delay: 5.minutes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment