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:
Sage Ross 2022-01-15 12:47:28 -08:00 committed by Benjamin Neff
parent 1c577fb5b2
commit 2b352b86ae
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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);