Sha256: cf6a2cd194e403048de18ed6f4737de3d5a07d0771faa31029335454d6df37c2

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'


def rescue_from(exception, options)
end
def env
  {}
end
include Egregious

describe Egregious do

  context "notify_airbrake 4" do
    class Airbrake
          def self.notify_or_ignore(*params)
          end
    end
    it "should call notify_or_ignore" do
      expect(Airbrake).to receive(:notify_or_ignore)
      notify_airbrake(nil)
    end
  end
  context "notify_airbrake 5" do
      class << Airbrake
        remove_method :notify_or_ignore
        def self.notify(*params)
        end
      end
      it "should call notify" do
        expect(Airbrake).to receive(:notify)
        notify_airbrake(nil)
      end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
egregious-0.2.12 spec/notify_airbrake_spec.rb