Sha256: eda1a178093a52ae8b5d4cbc59fa76ac8c10f5341fc467f75f2e79546fece855
Contents?: true
Size: 724 Bytes
Versions: 3
Compression:
Stored size: 724 Bytes
Contents
if defined?(ActionMailer) module RSpec::Rails module MailerExampleGroup extend ActiveSupport::Concern extend RSpec::Rails::ModuleInclusion include ActionMailer::TestCase::Behavior include Webrat::Matchers include RSpec::Matchers included do metadata[:type] = :mailer 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 module ClassMethods def mailer_class describes end end RSpec.configure &include_self_when_dir_matches('spec','mailers') end end end
Version data entries
3 entries across 3 versions & 1 rubygems