Last active
August 29, 2015 14:05
-
-
Save ryonext/efb5d89c1a1185b925b3 to your computer and use it in GitHub Desktop.
ExceptionNotifierをRspecで検証する
This file contains 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
it 'notify error message' do | |
allow(ExceptionNotifier).to receive(:notify_exception) | |
# call method that raise error | |
expect(ExceptionNotifier).to have_received(:notify_exception) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment