Sha256: ad6ef9799ebbbfa31f857703fd41bc5fb4549ffae958a1508bf04a3954db4f5e
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe UniformNotifier::Base do context '#inline_channel_notify' do before { allow(UniformNotifier::Base).to receive(:active?).and_return(true) } 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 { allow(UniformNotifier::Base).to receive(:active?).and_return(true) } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.16.0 | spec/uniform_notifier/base_spec.rb |