aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/delivery_method/test.rb
blob: 6e3239d52a2052a70f9db682a031d01872e360a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
module ActionMailer
  module DeliveryMethod

    # A delivery method implementation designed for testing, which just appends each record to the :deliveries array
    class Test < Method
      def perform_delivery(mail)
        ActionMailer::Base.deliveries << mail
      end
    end

  end
end