Sha256: 532fd2761049b6458c6676a86508f7ccb8efe6077a1accdb39a22e56c2fa08a0

Contents?: true

Size: 380 Bytes

Versions: 10

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'
require 'ronin/network/ssl'

describe Network::SSL do
  describe 'verify' do
    it "should map verify mode names to numeric values" do
      subject.verify(:peer).should == OpenSSL::SSL::VERIFY_PEER
    end

    it "should default to VERIFY_NONE if no verify mode name is given" do
      subject.verify.should == OpenSSL::SSL::VERIFY_NONE
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ronin-support-0.2.0 spec/network/ssl_spec.rb
ronin-support-0.2.0.rc2 spec/network/ssl_spec.rb
ronin-support-0.2.0.rc1 spec/network/ssl_spec.rb
ronin-support-0.1.0 spec/network/ssl_spec.rb
ronin-support-0.1.0.rc3 spec/network/ssl_spec.rb
ronin-support-0.1.0.rc2 spec/network/ssl_spec.rb
ronin-support-0.1.0.rc1 spec/network/ssl_spec.rb
ronin-support-0.1.0.pre3 spec/network/ssl_spec.rb
ronin-support-0.1.0.pre2 spec/network/ssl_spec.rb
ronin-support-0.1.0.pre1 spec/network/ssl_spec.rb