Merge branch 'filter_escaping' of https://github.com/Jamstah/ruby-net-ldap into Jamstah-filter_escaping

This commit is contained in:
Austin Ziegler 2011-03-17 22:37:44 -04:00
commit 2a63ae72b9
3 changed files with 14 additions and 8 deletions

View file

@ -77,8 +77,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