Sha256: 549a4b3630ef25a7b6dbd6e90f7c2d0dd949587f0ee6c2876774abea24a86856

Contents?: true

Size: 792 Bytes

Versions: 14

Compression:

Stored size: 792 Bytes

Contents

require 'spec_helper'

describe Excon::Test::Server do
  
  context 'when the web server is webrick' do
    it_should_behave_like "a excon test server", :webrick, 'basic.ru'
  end


  context 'when the web server is unicorn' do 
    context 'bound to a tcp socket' do
      it_should_behave_like "a excon test server", :unicorn, 'streaming.ru'
    end

    context "bound to a unix socket" do
      socket_uri = 'unix:///tmp/unicorn.socket'
      it_should_behave_like "a excon test server", :unicorn, 'streaming.ru', socket_uri
    end
  end

  context 'when the web server is puma' do
    it_should_behave_like "a excon test server", :puma, 'streaming.ru'
  end

  context 'when the web server is a executable' do
    it_should_behave_like "a excon test server", :exec, 'good.rb'
  end
end

Version data entries

14 entries across 12 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/spec/excon/test/server_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/spec/excon/test/server_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/spec/excon/test/server_spec.rb
excon-0.62.0 spec/excon/test/server_spec.rb
excon-0.61.0 spec/excon/test/server_spec.rb
excon-0.60.0 spec/excon/test/server_spec.rb
excon-0.59.0 spec/excon/test/server_spec.rb
excon-0.58.0 spec/excon/test/server_spec.rb
excon-0.57.1 spec/excon/test/server_spec.rb
excon-0.57.0 spec/excon/test/server_spec.rb
excon-0.56.0 spec/excon/test/server_spec.rb
excon-0.55.0 spec/excon/test/server_spec.rb
excon-0.54.0 spec/excon/test/server_spec.rb
excon-0.53.0 spec/excon/test/server_spec.rb