Sha256: 37392609e1eec71ff6256e0502617e2d6faea1d2362ce32be95b8c1d8b3228d3

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

require 'rspec/webservice_matchers'

describe 'have_a_valid_cert matcher' do

  it 'passes when SSL is properly configured' do
    # EFF created the HTTPS Everywhere movement
    # TODO: set up test servers for this.
    expect('www.eff.org').to have_a_valid_cert
  end  

  it 'fails if the server is not serving SSL at all' do
    expect {
      # www.psu.edu only supports HTTP, port 80.
      # TODO: set up test servers for this.
      expect('www.psu.edu').to have_a_valid_cert    
    }.to raise_error(RSpec::Expectations::ExpectationNotMetError)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-webservice_matchers-0.0.2 spec/rspec/webservice_matchers/ssl_spec.rb
rspec-webservice_matchers-0.0.1 spec/rspec/webservice_matchers/ssl_spec.rb