diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 9a646cd66821326dde49a241b95c8ab7d11ced56..6dfc245aff96062832cbc13401772200af3e7a0c 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