Sha256: 34cdb0dab4a626a5554814984ae6c01dcb381297906db4b1b7a2ba2a490b403c

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

require "spec_helper"

class Rollbar
  # mock Rollbar
end

RSpec.describe UniformNotifier::RollbarNotifier do
  it "should not notify rollbar" do
    expect(UniformNotifier::RollbarNotifier.out_of_channel_notify(:title => "notify rollbar")).to be_nil
  end

  it "should notify rollbar" do
    expect(Rollbar).to receive(:info).with(UniformNotifier::Exception.new("notify rollbar"))

    UniformNotifier.rollbar = true
    UniformNotifier::RollbarNotifier.out_of_channel_notify(:title => "notify rollbar")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uniform_notifier-1.11.0 spec/uniform_notifier/rollbar_spec.rb
uniform_notifier-1.10.0 spec/uniform_notifier/rollbar_spec.rb