From ef28e8980936160c469b4b306b4e00df9613cc34 Mon Sep 17 00:00:00 2001 From: Johannes Hackel Date: Wed, 23 Nov 2011 23:45:09 +0100 Subject: [PATCH] people_controller_spec --- app/controllers/tag_followings_controller.rb | 2 +- spec/controllers/people_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/tag_followings_controller.rb b/app/controllers/tag_followings_controller.rb index c86cbcb92..4a98720fb 100644 --- a/app/controllers/tag_followings_controller.rb +++ b/app/controllers/tag_followings_controller.rb @@ -17,7 +17,7 @@ class TagFollowingsController < ApplicationController name_normalized = ActsAsTaggableOn::Tag.normalize(params['name']) if name_normalized.nil? || name_normalized.empty? - flash[:error] = I18n.t('tag_followings.create.none', :name => name_normalized) + flash[:error] = I18n.t('tag_followings.create.none') else @tag = ActsAsTaggableOn::Tag.find_or_create_by_name(name_normalized) @tag_following = current_user.tag_followings.new(:tag_id => @tag.id) diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 57760971e..9a646cd66 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -94,7 +94,7 @@ describe PeopleController do it 'stay on the page if you search for the empty hash' do get :index, :q => '#' - response.should redirect_to(:back) + flash[:error].should be_present end end