Sha256: 1c8438794388b88f4ae8172e9adc3d6d206e50b701c2b734d9cf64e6e4fd67e1
Contents?: true
Size: 704 Bytes
Versions: 16
Compression:
Stored size: 704 Bytes
Contents
require 'spec_helper' require 'saddle/middleware/logging/statsd' describe Saddle::Middleware::Logging::StatsdLogger do context "test Statsd middleware" do it "with a request" do class StatsdClient < Saddle::Client add_middleware({ :klass => Saddle::Middleware::Logging::StatsdLogger, :args => ['127.0.0.1'], }) end client = StatsdClient.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
16 entries across 16 versions & 1 rubygems