Sha256: e8e9d824c43b0afc217780b6deca6b7a8db136d6c4b2c5f09b50f112cc4d9dd4

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

require 'rest-core/test'

describe RC::ErrorDetector do
  should 'lighten' do
    client = RC::Builder.client do
      s = self.class # this is only for ruby 1.8!
      use s::ErrorDetector
      run s::Dry
    end.new.lighten

    client.attributes.should.key?(:error_detector)
    client.app.call({}).should.eq({})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rest-core-1.0.2 test/test_error_detector.rb
rest-core-1.0.1 test/test_error_detector.rb
rest-core-1.0.0 test/test_error_detector.rb
rest-core-0.8.2 test/test_error_detector.rb