Sha256: 96bd7a75da8e6daef074ba2281ffadda7cac2d0d86baec4103f1ff62cd39e76c
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 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 text: "<p>%7B%7BMAILKICK_TOKEN%7D%7D</p>" } format.text { render text: "Boom: %7B%7BMAILKICK_TOKEN%7D%7D" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.1.6 | test/test_helper.rb |