Sha256: 0560e08937015b7cd0959ee775b80c6ba774c8e7d871b864cdeefb5f1d5a61ac

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

require "spec_helper"

class Airbrake
  # mock Airbrake
end

describe UniformNotifier::AirbrakeNotifier do
  it "should not notify airbrake" do
    UniformNotifier::AirbrakeNotifier.out_of_channel_notify("notify airbrake").should be_nil
  end

  it "should notify airbrake" do
    Airbrake.should_receive(:notify).with(Exception.new("notify airbrake"))

    UniformNotifier.airbrake = true
    UniformNotifier::AirbrakeNotifier.out_of_channel_notify("notify airbrake")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uniform_notifier-1.4.0 spec/uniform_notifier/airbrake_spec.rb
uniform_notifier-1.3.0 spec/uniform_notifier/airbrake_spec.rb
uniform_notifier-1.2.0 spec/uniform_notifier/airbrake_spec.rb
uniform_notifier-1.1.1 spec/uniform_notifier/airbrake_spec.rb
uniform_notifier-1.1.0 spec/uniform_notifier/airbrake_spec.rb