Sha256: e24007dbeab1f4b8c495d5b9609887d2e145253504477bf6ff3e30f95be574c0

Contents?: true

Size: 512 Bytes

Versions: 19

Compression:

Stored size: 512 Bytes

Contents

require 'spec_helper'


describe 'FaradayMiddleware::Instrumentation' do

  context "test integration of instrumentation middleware" do

    it "with a request should not bomb" 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

19 entries across 19 versions & 1 rubygems

Version Path
saddle-0.1.0 spec/middleware/instrumentation_spec.rb
saddle-0.0.53 spec/middleware/instrumentation_spec.rb
saddle-0.0.51 spec/middleware/instrumentation_spec.rb
saddle-0.0.50 spec/middleware/instrumentation_spec.rb
saddle-0.0.49 spec/middleware/instrumentation_spec.rb
saddle-0.0.48 spec/middleware/instrumentation_spec.rb
saddle-0.0.46 spec/middleware/instrumentation_spec.rb
saddle-0.0.45 spec/middleware/instrumentation_spec.rb
saddle-0.0.44 spec/middleware/instrumentation_spec.rb
saddle-0.0.43 spec/middleware/instrumentation_spec.rb
saddle-0.0.42 spec/middleware/instrumentation_spec.rb
saddle-0.0.41 spec/middleware/instrumentation_spec.rb
saddle-0.0.38 spec/middleware/instrumentation_spec.rb
saddle-0.0.37 spec/middleware/instrumentation_spec.rb
saddle-0.0.36 spec/middleware/instrumentation_spec.rb
saddle-0.0.35 spec/middleware/instrumentation_spec.rb
saddle-0.0.34 spec/middleware/instrumentation_spec.rb
saddle-0.0.33 spec/middleware/instrumentation_spec.rb
saddle-0.0.32 spec/middleware/instrumentation_spec.rb