test/utils_test.rb in ruby-saml-1.9.0 vs test/utils_test.rb in ruby-saml-1.10.0

- old
+ new

@@ -27,9 +27,14 @@ it "reformats the certificate when there are spaces and no headers" do invalid_certificate2 = read_certificate("invalid_certificate2") assert_equal formatted_certificate, OneLogin::RubySaml::Utils.format_cert(invalid_certificate2) end + it "returns the cert when it's encoded" do + encoded_certificate = read_certificate("certificate.der") + assert_equal encoded_certificate, OneLogin::RubySaml::Utils.format_cert(encoded_certificate) + end + it "reformats the certificate when there line breaks and no headers" do invalid_certificate3 = read_certificate("invalid_certificate3") assert_equal formatted_certificate, OneLogin::RubySaml::Utils.format_cert(invalid_certificate3) end