From f19330e4fbef7f893af86c6e9b06d3378c3ef936 Mon Sep 17 00:00:00 2001
From: Mike Greiling <mike@pixelcog.com>
Date: Tue, 3 Jan 2017 16:38:53 -0600
Subject: [PATCH] fix right_sidebar_spec ajax call

---
 spec/javascripts/right_sidebar_spec.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/spec/javascripts/right_sidebar_spec.js b/spec/javascripts/right_sidebar_spec.js
index b2ee0ce5963..0177d8e4e79 100644
--- a/spec/javascripts/right_sidebar_spec.js
+++ b/spec/javascripts/right_sidebar_spec.js
@@ -65,9 +65,10 @@
     });
 
     it('should broadcast todo:toggle event when add todo clicked', function() {
+      var todos = getJSONFixture('todos.json');
       spyOn(jQuery, 'ajax').and.callFake(function() {
         var d = $.Deferred();
-        var response = getJSONFixture('todos.json');
+        var response = todos;
         d.resolve(response);
         return d.promise();
       });
-- 
GitLab