spec/spec_helper.rb in test_notifier-2.0.3 vs spec/spec_helper.rb in test_notifier-2.1.0

- old
+ new

@@ -1,10 +1,15 @@ +# frozen_string_literal: true + +require "bundler/setup" require "test_notifier" module SpecHelpers def unsupport_all_notifiers Notifier.notifiers.each do |notifier| - allow(notifier).to receive(:supported?).and_return(false) unless notifier == Notifier::Placebo + unless notifier == Notifier::Placebo + allow(notifier).to receive(:supported?).and_return(false) + end end end end RSpec.configure do |config|