Pending spec for 500 on capital letters
This commit is contained in:
parent
41be7a37b0
commit
0ac28cd9ea
2 changed files with 7 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class TagFollowingsController < ApplicationController
|
|||
@tag_following = current_user.tag_followings.new(:tag_id => @tag.id)
|
||||
|
||||
if @tag_following.save
|
||||
flash[:notice] = I18n.t('tag_followings.create.success', :name => params[:name])
|
||||
flash[:notice] = I18n.t('tag_followings.create.success', :name => params[:name])
|
||||
else
|
||||
flash[:error] = I18n.t('tag_followings.create.failure', :name => params[:name])
|
||||
end
|
||||
|
|
|
|||
|
|
@ -55,6 +55,12 @@ describe TagFollowingsController do
|
|||
response.should redirect_to(tag_path(:name => valid_attributes[:name]))
|
||||
flash[:error].should == "Failed to follow: ##{valid_attributes[:name]}"
|
||||
end
|
||||
|
||||
it 'downcases the tag name' do
|
||||
pending "THIS CAUSES A 500 WE NEED TO FIX IT"
|
||||
post "tags/#{valid_attributes[:name].upcase}/tag_followings"
|
||||
assigns[:tag].should == @tag
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue