/*= require merge_request */(function(){describe('MergeRequest',function(){returndescribe('task lists',function(){fixture.preload('merge_requests_show.html');beforeEach(function(){fixture.load('merge_requests_show.html');returnthis.merge=newMergeRequest();});it('modifies the Markdown field',function(){spyOn(jQuery,'ajax').and.stub();$('input[type=checkbox]').attr('checked',true).trigger('change');returnexpect($('.js-task-list-field').val()).toBe('- [x] Task List Item');});returnit('submits an ajax request on tasklist:changed',function(){spyOn(jQuery,'ajax').and.callFake(function(req){expect(req.type).toBe('PATCH');expect(req.url).toBe('/foo');returnexpect(req.data.merge_request.description).not.toBe(null);});return$('.js-task-list-field').trigger('tasklist:changed');});});});}).call(this);