Sha256: f74c89a1e73d0c54f7363a97795a9eaf3ab6e1ecc7b21f5d7611e18a9efa2889

Contents?: true

Size: 401 Bytes

Versions: 16

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

RSpec.describe Airbrake do
  describe ".add_rack_builder" do
    let :builder do
      proc { |_, _| nil }
    end

    after { Airbrake::Rack::NoticeBuilder.builders.delete(builder) }

    it "adds new builder to the chain" do
      expect { Airbrake.add_rack_builder(&builder) }.to change {
        Airbrake::Rack::NoticeBuilder.builders.count
      }.by(1)
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dfg-airbrake-5.6.2 spec/airbrake_spec.rb
airbrake-5.6.1 spec/airbrake_spec.rb
airbrake-5.6.0 spec/airbrake_spec.rb
airbrake-5.5.0 spec/airbrake_spec.rb
airbrake-5.4.5 spec/airbrake_spec.rb
airbrake-5.4.4 spec/airbrake_spec.rb
airbrake-5.4.3 spec/airbrake_spec.rb
airbrake-5.4.2 spec/airbrake_spec.rb
airbrake-5.4.1 spec/airbrake_spec.rb
airbrake-5.4.0 spec/airbrake_spec.rb
airbrake-5.3.0 spec/airbrake_spec.rb
airbrake-5.2.3 spec/airbrake_spec.rb
airbrake-5.2.2 spec/airbrake_spec.rb
airbrake-5.2.1 spec/airbrake_spec.rb
airbrake-5.2.0 spec/airbrake_spec.rb
airbrake-5.1.0 spec/airbrake_spec.rb