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.5.3-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.2-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.1-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.0-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.5.0 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.16-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.16 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.15-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.15 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.14-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.14 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.13-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.13 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.12-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.12 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.11-java spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-3.4.11 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb