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-3.3.11-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.3.11 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.10-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.10 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.9-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.9 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.8-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.8 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.7-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.7 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.6-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.6 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.5-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.5 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.4-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.3-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.2-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb