Sha256: 9c0916a575a9a393ec60ca3660db29374abcffd6609babafda73e6aaa47af382

Contents?: true

Size: 790 Bytes

Versions: 3

Compression:

Stored size: 790 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
uniform_notifier-1.13.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.12.1 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.12.0 spec/uniform_notifier/base_spec.rb