Sha256: cf8ec9d1f90e9faeded6ac438ba8b6ddef41d775bc81f25f879468fe2ff745df

Contents?: true

Size: 607 Bytes

Versions: 14

Compression:

Stored size: 607 Bytes

Contents

module MiniTestSpecRails
  module Init
    module ActionMailerBehavior
      extend ActiveSupport::Concern

      included do
        register_spec_type(self) { |desc| desc.is_a?(Class) && desc < ActionMailer::Base }
        register_spec_type(/Mailer( ?Test)?\z/, self)
        register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
        extend Descriptions
      end

      module Descriptions
        def described_class
          determine_default_mailer(name)
        end
      end
    end
  end
end

ActionMailer::TestCase.send :include, MiniTestSpecRails::Init::ActionMailerBehavior

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
minitest-spec-rails-7.4.1 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-7.4.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-7.3.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-7.2.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-7.1.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-7.0.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.2.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.1.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.0.4 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.0.3 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.0.2 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.0.1 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-6.0.0 lib/minitest-spec-rails/init/action_mailer.rb
minitest-spec-rails-5.5.0 lib/minitest-spec-rails/init/action_mailer.rb