Sha256: 6390b6ab621904b9b64d5e6e7bf99357167fc5fd38802febe68621b94dddedb6

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

require 'saddle'



describe 'FaradayMiddleware::Instrumentation' do

  context "test integration of instrumentation middleware" do

    it "with a request" do
      client = Saddle::Client.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

Version Path
saddle-0.0.31 spec/middleware/instrumentation_spec.rb
saddle-0.0.30 spec/middleware/instrumentation_spec.rb
saddle-0.0.27 spec/middleware/instrumentation_spec.rb
saddle-0.0.26 spec/middleware/instrumentation_spec.rb
saddle-0.0.25 spec/middleware/instrumentation_spec.rb