Sha256: 5ea3ed02aa9c5bddf426030447468fdcaa813aa47a44d15b1c02ae9d3caca680

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

require "bundler/setup"
require "test_notifier"

module SpecHelpers
  def unsupport_all_notifiers
    Notifier.notifiers.each do |notifier|
      unless notifier == Notifier::Placebo
        allow(notifier).to receive(:supported?).and_return(false)
      end
    end
  end
end

RSpec.configure do |config|
  config.include SpecHelpers
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_notifier-2.1.0 spec/spec_helper.rb