expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the first character of a hex pair, but got \"x\"")
expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the first character of a hex pair, but got \"X\"")
end
end
end
end
...
@@ -101,7 +101,7 @@ describe Gitlab::LDAP::DN do
...
@@ -101,7 +101,7 @@ describe Gitlab::LDAP::DN do
let(:given){'0.9.2342.19200300.100.1.25=#aaaYaa'}
let(:given){'0.9.2342.19200300.100.1.25=#aaaYaa'}
it'raises MalformedDnError'do
it'raises MalformedDnError'do
expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the second character of a hex pair, but got \"y\"")
expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the second character of a hex pair, but got \"Y\"")
end
end
end
end
...
@@ -109,7 +109,7 @@ describe Gitlab::LDAP::DN do
...
@@ -109,7 +109,7 @@ describe Gitlab::LDAP::DN do
let(:given){'uid="Sebasti\\cX\\a1n"'}
let(:given){'uid="Sebasti\\cX\\a1n"'}
it'raises MalformedDnError'do
it'raises MalformedDnError'do
expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the second character of a hex pair inside a double quoted value, but got \"x\"")
expect{subject}.toraise_error(Gitlab::LDAP::MalformedDnError,"Expected the second character of a hex pair inside a double quoted value, but got \"X\"")