Sha256: 568435eba9f0fcf68c1086b40c94f06d7712527e25806f34c716a6c760657d01

Contents?: true

Size: 525 Bytes

Versions: 16

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe Acfs::Adapter::Typhoeus do
  let(:adapter) { described_class.new }
  before { WebMock.allow_net_connect! }

  it 'raises an error' do
    request1 = Acfs::Request.new 'http://altimos.de/404.1' do |rsp|
      raise '404-1'
    end
    request2 = Acfs::Request.new 'http://altimos.de/404.2' do |rsp|
      raise '404-2'
    end
    adapter.queue request1
    adapter.queue request2

    expect{ adapter.start }.to raise_error /404\-[12]/
    expect{ adapter.start }.to_not raise_error
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
acfs-0.42.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.41.1 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.41.1.beta1 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.41.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.40.1.rc1 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.40.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.39.1 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.39.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-1.0.0.dev.1.b305 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.38.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-1.0.0.dev.1.b298 spec/acfs/adapter/typhoeus_spec.rb
acfs-1.0.0.dev.1.b297 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.37.0.1.b295 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.37.0 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.36.0.1.b293 spec/acfs/adapter/typhoeus_spec.rb
acfs-0.36.0 spec/acfs/adapter/typhoeus_spec.rb