Sha256: 513077fe99958b946ef83a83a9659e7ba7162b2c6c72f2ae37784c1c64ec75e0

Contents?: true

Size: 624 Bytes

Versions: 432

Compression:

Stored size: 624 Bytes

Contents

describe Appsignal::EventFormatter::Faraday::RequestFormatter do
  let(:klass)     { Appsignal::EventFormatter::Faraday::RequestFormatter }
  let(:formatter) { klass.new }

  it "should register request.faraday" do
    expect(Appsignal::EventFormatter.registered?("request.faraday", klass)).to be_truthy
  end

  describe "#format" do
    let(:payload) do
      {
        :method => :get,
        :url => URI.parse("http://example.org/hello/world?some=param")
      }
    end

    subject { formatter.format(payload) }

    it { is_expected.to eq ["GET http://example.org", "GET http://example.org/hello/world"] }
  end
end

Version data entries

432 entries across 432 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.6 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.5-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.5 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.4-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.3-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.2-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.1-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.0-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.0 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.13.1-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.13.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.13.1.alpha.1-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.13.1.alpha.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.0.beta.2-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-4.0.0.beta.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb