No need to pass empty block to search

master
Daniel Abrahamsson 2011-09-22 16:19:12 +02:00
parent a4819e525f
commit 2336188503
1 changed files with 1 additions and 2 deletions

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