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