Sha256: 141001510ce540ecf111260f79e037b665a47349ff817b6086eb73c021527af8

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

describe SoapObject do
  let(:client) { double('client') }
  let(:platform) {double('savon')}

  before do
    allow(platform).to receive(:client).and_return(client)
  end

  context 'when setting client ssl options' do

    it 'should allow one to enable SSL verification' do
      expect(platform).to receive(:client).with(hash_including(ssl_verify_mode: :peer))

      WithSslOptions.new(platform)
    end

    it 'should allow one to set SSL version' do
      expect(platform).to receive(:client).with(hash_including(ssl_version: :SSLv2))

      WithSslOptions.new(platform)
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soap-object-0.6.8 spec/lib/ssl_options_spec.rb