diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-03 16:38:53 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-05 14:11:19 -0600 |
commit | f19330e4fbef7f893af86c6e9b06d3378c3ef936 (patch) | |
tree | 1709f82b781e60267a86996c8d45884f78378ad2 | |
parent | 7a2a9bb45e681fdcd707fdbe3fbcc3ce2e17663c (diff) | |
download | gitlab-ce-26226-generate-all-haml-fixtures-within-teaspoon-fixtures-task.tar.gz |
fix right_sidebar_spec ajax call26226-generate-all-haml-fixtures-within-teaspoon-fixtures-task
-rw-r--r-- | spec/javascripts/right_sidebar_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); }); |