Sha256: c11ebaa14e84ab874d69a36157b1f01371dac565ebd9bf9b066549224e7e235d

Contents?: true

Size: 359 Bytes

Versions: 129

Compression:

Stored size: 359 Bytes

Contents

require 'models/user_notify.rb'

ActionMailer::Base.class_eval {
  @@inject_one_error = false
  cattr_accessor :inject_one_error

  private
  def perform_delivery_test(mail)
    if inject_one_error
      ActionMailer::Base::inject_one_error = false
      raise "Failed to send email" if raise_delivery_errors
    else
      deliveries << mail
    end
  end
}

Version data entries

129 entries across 129 versions & 2 rubygems

Version Path
backlog-0.3.0 test/mocks/test/user_notify.rb
backlog-0.3.1 test/mocks/test/user_notify.rb
backlog-0.3.3 test/mocks/test/user_notify.rb
backlog-0.3.2 test/mocks/test/user_notify.rb
backlog-0.3.4 test/mocks/test/user_notify.rb
backlog-0.3.5 test/mocks/test/user_notify.rb
backlog-0.3.6 test/mocks/test/user_notify.rb
backlog-0.3.7 test/mocks/test/user_notify.rb
backlog-0.3.8 test/mocks/test/user_notify.rb
backlog-0.3.9 test/mocks/test/user_notify.rb
backlog-0.31.0 test/mocks/test/user_notify.rb
backlog-0.30.0 test/mocks/test/user_notify.rb
backlog-0.31.1 test/mocks/test/user_notify.rb
backlog-0.32.0 test/mocks/test/user_notify.rb
backlog-0.33.0 test/mocks/test/user_notify.rb
backlog-0.33.1 test/mocks/test/user_notify.rb
backlog-0.34.1 test/mocks/test/user_notify.rb
backlog-0.34.2 test/mocks/test/user_notify.rb
backlog-0.35.0 test/mocks/test/user_notify.rb
backlog-0.34 test/mocks/test/user_notify.rb