acceptance/checking_certificates_spec.rb in sslcheck-0.9.6 vs acceptance/checking_certificates_spec.rb in sslcheck-0.9.9

- old
+ new

@@ -2,22 +2,23 @@ module SSLCheck describe 'Checking Certificates' do context "when the certificate is missing" do before do - @check = Check.new.check("www.claytonlz.com") + SSLCheck::Client.timeout_seconds = 1 + @check = Check.new.check("nossl.com") end it 'should not be valid' do expect(@check.valid?).to_not be end it 'should have errors' do expect(@check.errors).to_not be_empty end end context "when the certificate is valid" do before do - @check = Check.new.check("https://www.sslinsight.com") + @check = Check.new.check("letsencrypt.org") end it 'should be valid' do expect(@check.valid?).to be end it 'should not have any errors' do @@ -28,23 +29,23 @@ end it 'should know the ca bundle' do expect(@check.ca_bundle).to be end end - context "when the certificate is on a subdomain, but not a wildcard cert" do + xcontext "when the certificate is on a subdomain, but not a wildcard cert" do before do - @check = Check.new.check("https://app.sslinsight.com") + @check = Check.new.check("https://www.httpbin.org") end it 'should be valid' do expect(@check.valid?).to be end it 'should not have any errors' do expect(@check.errors).to be_empty end end context "when the common name is not correct" do before do - @check = Check.new.check('https://mismatch.examples.sslinsight.com') + @check = Check.new.check('https://wrong.host.badssl.com/') end it 'should not be valid' do expect(@check.valid?).to_not be end it 'should have errors' do