Sha256: 32a533a0e85097087668d8ce5a443ce8913fe565d52f54d8a747c895a75d7225

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 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(UniformNotifier::Exception.new("notify airbrake"))

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uniform_notifier-1.5.0 spec/uniform_notifier/airbrake_spec.rb