Sha256: 09875970cc3d2ba50eb119f651301c4ec771ea0c7ec278d99d3e4e2f2c1aacf3

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'
require 'capybara/webkit/connection'

describe Capybara::Webkit::Connection do
  it "sets appropriate options on its socket" do
    socket = double("socket")
    server = double(:Server, start: nil, port: 123)
    allow(TCPSocket).to receive(:open).and_return(socket)
    if defined?(Socket::TCP_NODELAY)
      expect(socket).to receive(:setsockopt).
        with(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, true)
    else
      expect(socket).not_to receive(:setsockopt)
    end

    Capybara::Webkit::Connection.new(server: server)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capybara-webkit-1.15.1 spec/connection_spec.rb
capybara-webkit-1.15.0 spec/connection_spec.rb
capybara-webkit-1.14.0 spec/connection_spec.rb
capybara-webkit-1.13.0 spec/connection_spec.rb