From f4234fa3a037d1f497add5ec701ab44fa2de2458 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Sun, 2 Jan 2022 13:29:00 -0800 Subject: [PATCH] Fix order-dependence bug in single_post_interactions_spec.js This was only passing when run after a loginAs from another spec. --- .../app/views/single-post-view/single_post_interactions_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/javascripts/app/views/single-post-view/single_post_interactions_spec.js b/spec/javascripts/app/views/single-post-view/single_post_interactions_spec.js index 507317a20..6a24d0d24 100644 --- a/spec/javascripts/app/views/single-post-view/single_post_interactions_spec.js +++ b/spec/javascripts/app/views/single-post-view/single_post_interactions_spec.js @@ -1,5 +1,6 @@ describe("app.views.SinglePostInteractions", function() { beforeEach(function() { + loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}}); this.post = factory.post(); this.view = new app.views.SinglePostInteractions({model: this.post}); });