From 2336188503a95428bafa3fc971fd2dca2cb24f95 Mon Sep 17 00:00:00 2001 From: Daniel Abrahamsson Date: Thu, 22 Sep 2011 16:19:12 +0200 Subject: [PATCH] No need to pass empty block to search --- spec/unit/ldap/search_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/unit/ldap/search_spec.rb b/spec/unit/ldap/search_spec.rb index b00ae98..3bf2187 100644 --- a/spec/unit/ldap/search_spec.rb +++ b/spec/unit/ldap/search_spec.rb @@ -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