Sha256: 82a27bb057c1b67de907e8ac93f7ebac8586ec1e6e605ecef4f46440ad72a121
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
module MiniTestSpecRails module Init module ActionMailerBehavior def self.included(klass) klass.class_eval do register_spec_type(self) { |desc| Class === desc && desc < ActionMailer::Base } register_spec_type(/Mailer( ?Test)?\z/i, self) register_spec_type(self) { |desc| Class === desc && desc < self } register_rails_test_case self before { setup_minitest_spec_rails_mailer_class } end end private def setup_minitest_spec_rails_mailer_class describing_class.tests described_class end end end end ActionMailer::TestCase.send :include, MiniTestSpecRails::Init::ActionMailerBehavior
Version data entries
3 entries across 3 versions & 1 rubygems