Sha256: 10384984800eab0b701ae5a399c52c6e57c49f6191838efece96c1ffe9550bea

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 a test server 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 a test server 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.5 spec/rspec/webservice_matchers/ssl_spec.rb
rspec-webservice_matchers-0.0.4 spec/rspec/webservice_matchers/ssl_spec.rb