Sha256: 29949c27010e93eb5a683a3c4c21e244a158fc02f2a72a5f5c7121fa7491665c
Contents?: true
Size: 548 Bytes
Versions: 4
Compression:
Stored size: 548 Bytes
Contents
require 'rspec/webservice_matchers/util' module RSpec module WebserviceMatchers module HaveAValidCert # Is https is correctly implemented? RSpec::Matchers.define :have_a_valid_cert do error_message = nil match do |domain_name_or_url| begin Util.try_ssl_connection(domain_name_or_url) rescue Exception => e error_message = e.message false end end failure_message do error_message end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems