Skip to content
Extraits de code Groupes Projets
Valider 6f283632 rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

fix resharing a reshare, javascript isn't ruby :P

parent 5ad15974
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -5,7 +5,7 @@ app.models.Reshare = app.models.Post.extend({
},
reshare : function(){
this.rootPost().reshare()
return this.rootPost().reshare()
},
reshareAuthor : function(){
......
......@@ -22,7 +22,11 @@ describe("app.models.Reshare", function(){
spyOn(this.reshare.rootPost(), "reshare")
this.reshare.reshare()
expect(this.reshare.rootPost().reshare).toHaveBeenCalled()
})
})
});
it("returns something", function() {
expect(this.reshare.reshare()).toBeDefined();
});
});
});
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