Pending spec for 500 on capital letters

This commit is contained in:
Raphael Sofaer 2011-07-05 17:31:49 -07:00
parent 41be7a37b0
commit 0ac28cd9ea
2 changed files with 7 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class TagFollowingsController < ApplicationController
@tag_following = current_user.tag_followings.new(:tag_id => @tag.id) @tag_following = current_user.tag_followings.new(:tag_id => @tag.id)
if @tag_following.save 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 else
flash[:error] = I18n.t('tag_followings.create.failure', :name => params[:name]) flash[:error] = I18n.t('tag_followings.create.failure', :name => params[:name])
end end

View file

@ -55,6 +55,12 @@ describe TagFollowingsController do
response.should redirect_to(tag_path(:name => valid_attributes[:name])) response.should redirect_to(tag_path(:name => valid_attributes[:name]))
flash[:error].should == "Failed to follow: ##{valid_attributes[:name]}" flash[:error].should == "Failed to follow: ##{valid_attributes[:name]}"
end 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
end end