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