Austin Story

Ruby, Rails and Javascript Blog

Powered by Genesis

Testing Action Mailer with Rspec

May 7, 2015 By Austin Story Leave a Comment

This is more so that i have this documented for later.

Say you are wanting to test that an action mailer instance receives a mailer. Here is the code in RSPEC

[ruby]
SomeNotifier.should_chain_receive(:delay, :mailer_message_you_are_sending)
[/ruby]

Filed Under: Ruby, Ruby on Rails

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AngularJS
  • Books
  • Devise
  • Elasticsearch
  • ES6
  • Information Security
  • Integrations
  • Javascript
  • Linux
  • Minitest
  • PhoneGap
  • Programming
  • React
  • Redux
  • Ruby
  • Ruby on Rails
  • Stripe
  • Testing
  • Theory
  • TypeScript
  • Uncategorized
  • Vue
  • Webpack