Sha256: 8e11baa132cb235825d36c22c60390c55104de43eaa3fc85f7b4e71b6e70d616

Contents?: true

Size: 627 Bytes

Versions: 37

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'

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 == ['GET http://example.org', 'GET http://example.org/hello/world'] }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
appsignal-1.3.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.0 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.0.beta.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.0.beta.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.3.0.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.5 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.4.beta.4 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.4.beta.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.4.beta.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.4.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.3.beta.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.3.beta.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.3.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.1.beta.3 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.1.beta.2 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
appsignal-1.2.1.beta.1 spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb