Sha256: 61cadba34ec20612471c3a37ec8c6a4ea84329d11df589f7db4e8a2b54f37653

Contents?: true

Size: 604 Bytes

Versions: 19

Compression:

Stored size: 604 Bytes

Contents

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

  it "should register request.faraday" do
    Appsignal::EventFormatter.registered?('request.faraday', klass).should be_true
  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 { should eq ['GET http://example.org', 'GET http://example.org/hello/world'] }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
appsignal-2.0.6 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.5 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.5.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.1.0.alpha.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.1.0.alpha.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.1.0.alpha.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.0 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-2.0.0.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.4.0.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.6 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.6.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.5 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.5.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb