Skip to content

Instantly share code, notes, and snippets.

@ryonext
Last active August 29, 2015 14:05
Show Gist options
  • Save ryonext/efb5d89c1a1185b925b3 to your computer and use it in GitHub Desktop.
Save ryonext/efb5d89c1a1185b925b3 to your computer and use it in GitHub Desktop.
ExceptionNotifierをRspecで検証する
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