acceptance/checking_certificates_spec.rb in sslcheck-0.9.1 vs acceptance/checking_certificates_spec.rb in sslcheck-0.9.2
- old
+ new
@@ -1,8 +1,19 @@
require 'spec_helper'
module SSLCheck
describe 'Checking Certificates' do
+ context "when the certificate is missing" do
+ before do
+ @check = Check.new.check("www.claytonlz.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("http://www.sslinsight.com")
end
it 'should be valid' do