Sha256: 5b5d2d183290246fd21f38ddc31caf3c3baaa31c49e26b303f4a3276c60af43e

Contents?: true

Size: 764 Bytes

Versions: 6

Compression:

Stored size: 764 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

6 entries across 6 versions & 1 rubygems

Version Path
uniform_notifier-1.15.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.14.2 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.14.1 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.14.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.13.2 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.13.1 spec/uniform_notifier/base_spec.rb