From b3ffa19f95c95b0113eefad0cb20ff9f9cea6ed1 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 25 Sep 2017 13:18:26 -0400 Subject: [PATCH] FIX: Make sure `Post` records have access to `Site` --- test/javascripts/widgets/post-stream-test.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/javascripts/widgets/post-stream-test.js.es6 b/test/javascripts/widgets/post-stream-test.js.es6 index a09cc6bcbac..071d59db957 100644 --- a/test/javascripts/widgets/post-stream-test.js.es6 +++ b/test/javascripts/widgets/post-stream-test.js.es6 @@ -8,7 +8,10 @@ function postStreamTest(name, attrs) { widgetTest(name, { template: `{{mount-widget widget="post-stream" args=(hash posts=posts)}}`, beforeEach() { - this.set('posts', attrs.posts.call(this)); + const site = this.container.lookup('site:main'); + let posts = attrs.posts.call(this); + posts.forEach(p => p.set('site', site)); + this.set('posts', posts); }, test: attrs.test });