spec/spec_helper.rb in test_notifier-1.0.1 vs spec/spec_helper.rb in test_notifier-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
require "test_notifier"
module SpecHelpers
def unsupport_all_notifiers
Notifier.notifiers.each do |notifier|
- notifier.stub :supported? => false unless notifier == Notifier::Placebo
+ allow(notifier).to receive(:supported?).and_return(false) unless notifier == Notifier::Placebo
end
end
end
RSpec.configure do |config|