test/utils_test.rb in ruby-saml-1.1.2 vs test/utils_test.rb in ruby-saml-1.2.0

- old
+ new

@@ -140,6 +140,19 @@ status_error_msg3 = OneLogin::RubySaml::Utils.status_error_msg(error_msg) assert_equal = "The status code of the Logout Response was not Success", status_error_msg3 end end -end \ No newline at end of file + + describe "Utils" do + + describe ".uuid" do + it "returns a uuid starting with an underscore" do + assert_match /^_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/, OneLogin::RubySaml::Utils.uuid + end + + it "doesn't return the same value twice" do + refute_equal OneLogin::RubySaml::Utils.uuid, OneLogin::RubySaml::Utils.uuid + end + end + end +end