Skip to content

Instantly share code, notes, and snippets.

@StefanH
Created December 7, 2012 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefanH/4232681 to your computer and use it in GitHub Desktop.
Save StefanH/4232681 to your computer and use it in GitHub Desktop.
# issue 8048
gem 'rails', '3.2.8'
require 'action_mailer'
ActionMailer::Base.delivery_method = :test
class TestMailer < ActionMailer::Base
def anything
mail(to: "someone")
nil
end
end
TestMailer.anything.deliver
puts ActionMailer::Base.deliveries.count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment