Sha256: 2c3fad396ce354b572ff3b749611b7674b7f1ff2f42c0df11e617877abba135c
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
require 'spec_helper' RSpec.describe UniformNotifier::Base do context "#inline_channel_notify" do before do allow(UniformNotifier::Base).to receive(:active?).and_return(true) end it "should keep the compatibility" do expect(UniformNotifier::Base).to receive(:_inline_notify).once.with(:title => "something") UniformNotifier::Base.inline_notify("something") end end context "#out_of_channel_notify" do before do allow(UniformNotifier::Base).to receive(:active?).and_return(true) end it "should keep the compatibility" do expect(UniformNotifier::Base).to receive(:_out_of_channel_notify).once.with(:title => "something") UniformNotifier::Base.out_of_channel_notify("something") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.11.0 | spec/uniform_notifier/base_spec.rb |
uniform_notifier-1.10.0 | spec/uniform_notifier/base_spec.rb |