Sha256: 1b7e37b86e1d39e83e8cc1c649dfbd2b48ea38236fb67bf1eaf592e12fb9b07c
Contents?: true
Size: 547 Bytes
Versions: 8
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' require 'ronin/network/ssl' describe Network::SSL do describe 'VERIFY' do subject { Network::SSL::VERIFY } it "should map verify mode names to OpenSSL VERIFY_* constants" do subject[:peer].should == OpenSSL::SSL::VERIFY_PEER end it "should default to VERIFY_NONE if no verify mode name is given" do subject[nil].should == OpenSSL::SSL::VERIFY_NONE end it "should raise an exception for unknown verify modes" do lambda { subject[:foo_bar] }.should raise_error end end end
Version data entries
8 entries across 8 versions & 1 rubygems