Sha256: 9ef796473762c591a4aaa5433fc1a90868c5c55b944f8ea350a40004c0186b9a

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe PacResult do
  it 'parses pac result' do
    result = PacResult.new('PROXY localhost:3128')

    expect(result.proxy).to eq('localhost')
    expect(result.proxy_port).to eq('3128')
    expect(result.request_type).to eq('PROXY')
  end

  it 'parses pac result' do
    result = PacResult.new('DIRECT')

    expect(result.proxy).to eq(nil)
    expect(result.proxy_port).to eq(nil)
    expect(result.request_type).to eq('DIRECT')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
proxy_tester-0.0.9 spec/pac_result_spec.rb
proxy_tester-0.0.8 spec/pac_result_spec.rb
proxy_tester-0.0.7 spec/pac_result_spec.rb
proxy_tester-0.0.6 spec/pac_result_spec.rb
proxy_tester-0.0.5 spec/pac_result_spec.rb
proxy_tester-0.0.4 spec/pac_result_spec.rb
proxy_tester-0.0.3 spec/pac_result_spec.rb
proxy_tester-0.0.2 spec/pac_result_spec.rb
proxy_tester-0.0.1 spec/pac_result_spec.rb