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