Skip to content
Extraits de code Groupes Projets
Valider cc565692 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

fix rspec to reflect flash message changes

parent 0def71d7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -56,14 +56,14 @@ describe TagFollowingsController do
it "flashes success to the tag page" do
post :create, valid_attributes
flash[:notice].should == "Successfully following: ##{valid_attributes[:name]}"
flash[:notice].should == "Horray! You're now following ##{valid_attributes[:name]}."
end
it "flashes error if you already have a tag" do
TagFollowing.any_instance.stub(:save).and_return(false)
post :create, valid_attributes
flash[:error].should == "Failed to follow: ##{valid_attributes[:name]}"
flash[:error].should include("Failed")
end
it 'squashes the tag' do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter