Sha256: 1e93c398756027e92b1190a451e7f3c5febb8430bfc3279d1f48b6cc36083e56

Contents?: true

Size: 692 Bytes

Versions: 7

Compression:

Stored size: 692 Bytes

Contents

require 'rubygems'
require 'action_mailer'
require 'mail'
require File.expand_path(File.dirname(__FILE__) + '/../lib/email_spec.rb')

RSpec.configure do |config|
  config.include EmailSpec::Helpers
  config.include EmailSpec::Matchers

  config.mock_with :rspec
  config.raise_errors_for_deprecations!

  def matcher_failure_message(matcher)
    matcher.respond_to?(:failure_message_for_should) ?
        matcher.failure_message_for_should :
        matcher.failure_message
  end

  def matcher_failure_message_when_negated(matcher)
    matcher.respond_to?(:failure_message_for_should_not) ?
        matcher.failure_message_for_should_not :
        matcher.negative_failure_message
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
email_spec-2.3.0 spec/spec_helper.rb
email_spec-2.2.2 spec/spec_helper.rb
email_spec-2.2.0 spec/spec_helper.rb
email_spec-2.1.2 spec/spec_helper.rb
email_spec-2.1.1 spec/spec_helper.rb
email_spec-2.1.0 spec/spec_helper.rb
email_spec-2.0.0 spec/spec_helper.rb