Sha256: 56c8ac2028cb8a7eb193c6625736c8c796e14ec6b4b8fca40e82605afb24255c

Contents?: true

Size: 804 Bytes

Versions: 8

Compression:

Stored size: 804 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Bugsnag::Configuration do
  describe "delivery_method" do
    it "should have the default delivery method" do
      expect(subject.delivery_method).to eq(Bugsnag::Configuration::DEFAULT_DELIVERY_METHOD)
    end

    it "should have the defined delivery_method" do
      subject.delivery_method = :test
      expect(subject.delivery_method).to eq(:test)
    end

    it "should allow a new default delivery_method to be set" do
      subject.default_delivery_method = :test
      expect(subject.delivery_method).to eq(:test)
    end

    it "should allow the delivery_method to be set over a default" do
      subject.default_delivery_method = :test
      subject.delivery_method = :wow
      expect(subject.delivery_method).to eq(:wow)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bugsnag-5.5.0 spec/configuration_spec.rb
bugsnag-5.4.1 spec/configuration_spec.rb
bugsnag-5.4.0 spec/configuration_spec.rb
bugsnag-5.3.3 spec/configuration_spec.rb
bugsnag-5.3.2 spec/configuration_spec.rb
bugsnag-5.3.1 spec/configuration_spec.rb
bugsnag-5.3.0 spec/configuration_spec.rb
bugsnag-5.2.0 spec/configuration_spec.rb