fix resharing a reshare, javascript isn't ruby :P
This commit is contained in:
parent
5ad15974fb
commit
6f283632c5
2 changed files with 7 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue