Sha256: a0114a375285f0fb9b6b5fc8435c66a8fd6d3d5253465535b102a089c219f051

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

::RSpec.configure do |config|
  config.before(:each, email: true) do
    config.rspeckled_logger.debug("Before Each  - Start - #{__FILE__}")

    if ::ActionMailer::Base.delivery_method == :cache
      mailer.clear_cache
    else
      deliveries.clear
    end

    config.rspeckled_logger.debug("Before Each  - End   - #{__FILE__}")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/hooks/action_mailer.rb
rspeckled-2.1.0 lib/rspeckled/plugins/hooks/action_mailer.rb