Sha256: 13d96552f17c1ab43f0f36e95e30c9d198c64798528d75e895606e70b8a60a70
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
require "bundler/setup" Bundler.require(:default) require "minitest/autorun" require "minitest/pride" require "logger" require "action_mailer" Minitest::Test = Minitest::Unit::TestCase unless defined?(Minitest::Test) ActionMailer::Base.delivery_method = :test Mailkick.secret_token = "test123" class UserMailer < ActionMailer::Base default from: "from@example.com" def welcome mail to: "test@example.org", subject: "Hello" do |format| format.html { render plain: "<p>%7B%7BMAILKICK_TOKEN%7D%7D</p>" } format.text { render plain: "Boom: %7B%7BMAILKICK_TOKEN%7D%7D" } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.2.1 | test/test_helper.rb |
mailkick-0.2.0 | test/test_helper.rb |