Sha256: fbaf70d29541a741d8c2db44b713879a49e46324413fb0529aa80d9c1fa0e2c0

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe Ethon::Multi do
  describe ".new" do
    it "inits curl" do
      Ethon::Curl.should_receive(:init)
      Ethon::Multi.new
    end

    context "when options not empty" do
      context "when pipelining is set" do
        let(:options) { { :pipelining => true } }

        it "sets pipelining" do
          Ethon::Multi.any_instance.should_receive(:pipelining=).with(true)
          Ethon::Multi.new(options)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ethon-0.7.0 spec/ethon/multi_spec.rb
ethon-0.6.3 spec/ethon/multi_spec.rb
ethon-0.6.2 spec/ethon/multi_spec.rb
ethon-0.6.1 spec/ethon/multi_spec.rb
ethon-0.6.0 spec/ethon/multi_spec.rb