Sha256: c45a744872fcee67d0fae13754b62a3dfe6c15d4e5b1a07279325623fa3b1b08
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 Bytes
Contents
require 'saddle' require 'saddle/middleware/logging/airbrake' describe Saddle::Middleware::Logging::AirbrakeLogger do context "test Airbrake middleware" do it "with a request" do class AirbrakeClient < Saddle::Client add_middleware({ :klass => Saddle::Middleware::Logging::AirbrakeLogger, }) end client = AirbrakeClient.create( :stubs => Faraday::Adapter::Test::Stubs.new do |stub| stub.get('/test') { [ 200, {}, 'Party on!', ] } end ) client.requester.get('/test').should == 'Party on!' end end end
Version data entries
5 entries across 5 versions & 1 rubygems