Sha256: 5c9f8fc567a927f9a8a87f48c4a8a9f84320bbd61d1e5f5f33736347223b9b7c

Contents?: true

Size: 554 Bytes

Versions: 13

Compression:

Stored size: 554 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Bugsnag do
  describe 'notify' do
    before do
      Bugsnag.configuration.logger = spy('logger')
    end

    it 'does not log an error when sending valid arguments as auto_notify' do
      notify_test_exception(true)
      expect(Bugsnag.configuration.logger).to_not have_received(:warn)
    end
    it 'logs an error when sending invalid arguments as auto_notify' do
      notify_test_exception({severity: 'info'})
      expect(Bugsnag.configuration.logger).to have_received(:warn)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bugsnag-6.6.4 spec/bugsnag_spec.rb
bugsnag-6.6.3 spec/bugsnag_spec.rb
bugsnag-6.6.2 spec/bugsnag_spec.rb
bugsnag-6.6.1 spec/bugsnag_spec.rb
bugsnag-6.6.0 spec/bugsnag_spec.rb
bugsnag-6.5.0 spec/bugsnag_spec.rb
bugsnag-6.4.0 spec/bugsnag_spec.rb
bugsnag-6.3.0 spec/bugsnag_spec.rb
bugsnag-6.3.0.beta.0 spec/bugsnag_spec.rb
bugsnag-6.2.0 spec/bugsnag_spec.rb
bugsnag-6.1.1 spec/bugsnag_spec.rb
bugsnag-6.1.0 spec/bugsnag_spec.rb
bugsnag-6.0.1 spec/bugsnag_spec.rb