Add breaking tests.

This commit is contained in:
Jamstah 2011-01-11 14:23:15 +00:00
parent 5bc73d3aa3
commit ab196040b4
2 changed files with 10 additions and 3 deletions

View file

@ -76,8 +76,8 @@ describe Net::LDAP::Filter do
end
end
describe "<- .escape(str)" do
it "should escape !, &, *, :, | and ~" do
Net::LDAP::Filter.escape('!&*:|~').should == "\\21\\26\\2A\\3A\\7C\\7E"
it "should escape nul, *, (, ) and \\" do
Net::LDAP::Filter.escape("\0*()\\").should == "\\00\\2A\\28\\29\\5C"
end
end
end
end