diff --git a/spec/helpers/search_helper.rb b/spec/helpers/search_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/helpers/search_helper.rb
+++ b/spec/helpers/search_helper.rb
@@ -69,7 +69,7 @@ module SearchHelper
   end
 
   def connection
-    @connection ||= mock('connection')
+    @connection ||= Mock::Connection.new
   end
 
   def session
Use Mock::Connection.new in specs instead of mock('connection')