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