aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/delivery_method/test.rb
blob: e63e0abbb8d66d26ed7133d8ff58fc8fead0cf9e (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