From 3c74f3d8487ebea23c0e524d717b1f4bd48805f7 Mon Sep 17 00:00:00 2001
From: Gonzalo Rodriguez <gonzalo@wyeworks.com>
Date: Sat, 3 Dec 2011 21:19:01 -0200
Subject: [PATCH] Failing spec for empty search bug #2427

---
 spec/controllers/people_controller_spec.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb
index 9a646cd668..6dfc245aff 100644
--- a/spec/controllers/people_controller_spec.rb
+++ b/spec/controllers/people_controller_spec.rb
@@ -91,11 +91,16 @@ describe PeopleController do
       get :index, :q => '#babi.es'
       response.should redirect_to(tag_path('babies', :q => '#babi.es'))
     end
-    
+
     it 'stay on the page if you search for the empty hash' do
       get :index, :q => '#'
       flash[:error].should be_present
     end
+
+    it 'does not fails if you search for the empty term' do
+      get :index, :q => ''
+      response.should be_success
+    end
   end
 
   describe '#tag_index' do
-- 
GitLab