Fix order-dependent failures in comment_view_spec.js
It looks like these specs expect a logged-in user, and would fail when run after a test that logged out.
This commit is contained in:
parent
1c577fb5b2
commit
2b352b86ae
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ describe("app.views.Comment", function(){
|
|||
});
|
||||
|
||||
describe("canRemove", function(){
|
||||
beforeEach(function(){
|
||||
loginAs({name:'alice'});
|
||||
});
|
||||
|
||||
context("is truthy", function(){
|
||||
it("when ownComment is true", function(){
|
||||
spyOn(this.view, "ownComment").and.returnValue(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue