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.36.2 test/mocks/test/user_notify.rb
backlog-0.0.0 test/mocks/test/user_notify.rb
backlog-0.0.1 test/mocks/test/user_notify.rb
backlog-0.0.2 test/mocks/test/user_notify.rb
backlog-0.0.5 test/mocks/test/user_notify.rb
backlog-0.0.4 test/mocks/test/user_notify.rb
backlog-0.1.0 test/mocks/test/user_notify.rb
backlog-0.1.1 test/mocks/test/user_notify.rb
backlog-0.1.2 test/mocks/test/user_notify.rb
backlog-0.10.0 test/mocks/test/user_notify.rb
backlog-0.10.1 test/mocks/test/user_notify.rb
backlog-0.10.2 test/mocks/test/user_notify.rb
backlog-0.10.5 test/mocks/test/user_notify.rb
backlog-0.10.3 test/mocks/test/user_notify.rb
backlog-0.10.4 test/mocks/test/user_notify.rb
backlog-0.10.7 test/mocks/test/user_notify.rb
backlog-0.10.6 test/mocks/test/user_notify.rb
backlog-0.10.8 test/mocks/test/user_notify.rb
backlog-0.11.0 test/mocks/test/user_notify.rb
backlog-0.12.0 test/mocks/test/user_notify.rb