Sha256: 9686c2d3682c981e1cd12994e5c327ba87275c14cd9da60c95e73c797d430050

Contents?: true

Size: 725 Bytes

Versions: 6

Compression:

Stored size: 725 Bytes

Contents

require 'spec_helper'

describe UniformNotifier::Base do
  context "#inline_channel_notify" do
    before do
      UniformNotifier::Base.stub(:active?).and_return(true)
    end
    it "should keep the compatibility" do
      UniformNotifier::Base.should_receive(:_inline_notify).once.with(:title => "something")
      UniformNotifier::Base.inline_notify("something")
    end
  end
  context "#out_of_channel_notify" do
    before do
      UniformNotifier::Base.stub(:active?).and_return(true)
    end
    it "should keep the compatibility" do
      UniformNotifier::Base.should_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.9.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.8.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.7.0 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.6.2 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.6.1 spec/uniform_notifier/base_spec.rb
uniform_notifier-1.6.0 spec/uniform_notifier/base_spec.rb