diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-30 18:14:33 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-05 14:11:07 -0600 |
commit | 7a2a9bb45e681fdcd707fdbe3fbcc3ce2e17663c (patch) | |
tree | 94981286ccd9cf5ba26684288994e3a50dd21866 /spec/javascripts/project_title_spec.js | |
parent | 10d483eaaaccc336399fa83a0ac5f7ecd9cea352 (diff) | |
download | gitlab-ce-7a2a9bb45e681fdcd707fdbe3fbcc3ce2e17663c.tar.gz |
replace Teaspoon fixture methods with jasmine-jquery methods to reduce dependency on Teaspoon
Diffstat (limited to 'spec/javascripts/project_title_spec.js')
-rw-r--r-- | spec/javascripts/project_title_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/javascripts/project_title_spec.js b/spec/javascripts/project_title_spec.js index 677094f2c9d..27b071f266d 100644 --- a/spec/javascripts/project_title_spec.js +++ b/spec/javascripts/project_title_spec.js @@ -16,10 +16,9 @@ window.gon.api_version = 'v3'; describe('Project Title', function() { - fixture.preload('static/project_title.html.raw'); - fixture.preload('projects.json'); + preloadFixtures('static/project_title.html.raw'); beforeEach(function() { - fixture.load('static/project_title.html.raw'); + loadFixtures('static/project_title.html.raw'); return this.project = new Project(); }); return describe('project list', function() { @@ -34,7 +33,7 @@ beforeEach((function(_this) { return function() { - _this.projects_data = fixture.load('projects.json')[0]; + _this.projects_data = getJSONFixture('projects.json'); return spyOn(jQuery, 'ajax').and.callFake(fakeAjaxResponse.bind(_this)); }; })(this)); |