Sha256: 2e03c9da100cd03d94208b6ad85775fd4abf4c88548ed39987d6321cd85aff2f

Contents?: true

Size: 1.07 KB

Versions: 14

Compression:

Stored size: 1.07 KB

Contents

module RSpec
  module Rails
    # Container module for mailer spec functionality. It is only available if
    # ActionMailer has been loaded before it.
    module MailerExampleGroup
      # This blank module is only necessary for YARD processing. It doesn't
      # handle the conditional `defined?` check below very well.
    end
  end
end

if defined?(ActionMailer)
  module RSpec
    module Rails
      # Container module for mailer spec functionality.
      module MailerExampleGroup
        extend ActiveSupport::Concern
        include RSpec::Rails::RailsExampleGroup
        include ActionMailer::TestCase::Behavior

        included do
          include ::Rails.application.routes.url_helpers
          options = ::Rails.configuration.action_mailer.default_url_options
          options.each { |key, value| default_url_options[key] = value } if options
        end

        # Class-level DSL for mailer specs.
        module ClassMethods
          # Alias for `described_class`.
          def mailer_class
            described_class
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 13 versions & 3 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-rails-3.3.3/lib/rspec/rails/example/mailer_example_group.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/example/mailer_example_group.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.3.3 lib/rspec/rails/example/mailer_example_group.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-rails-3.1.0/lib/rspec/rails/example/mailer_example_group.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.3.2 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.3.1 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.3.0 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.2.3 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.2.2 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.2.1 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.2.0 lib/rspec/rails/example/mailer_example_group.rb
rspec-rails-3.1.0 lib/rspec/rails/example/mailer_example_group.rb