people_controller_spec
This commit is contained in:
parent
0c1be5002d
commit
ef28e89809
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue