No need to pass empty block to search

This commit is contained in:
Daniel Abrahamsson 2011-09-22 16:19:12 +02:00
parent a4819e525f
commit 2336188503

View file

@ -15,8 +15,7 @@ describe Net::LDAP, "search method" do
context "when returning result set" do
it "should return nil upon error" do
result_set = @connection.search(:return_result => true) do
end
result_set = @connection.search(:return_result => true)
result_set.should be_nil
end
end