Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 6dc44936 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem Validation de Benjamin Neff
Parcourir les fichiers

Add spec for post_page_title for reshares

parent fc28d6af
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -17,6 +17,13 @@ describe PostsHelper, :type => :helper do
post_page_title(post)
end
end
context "with a reshare" do
it "returns 'Reshare by...'" do
reshare = FactoryGirl.create(:reshare, author: alice.person)
expect(post_page_title(reshare)).to eq I18n.t("posts.show.reshare_by", author: reshare.author_name)
end
end
end
......
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