Sha256: b75a769059d47a96d5c46f2c292df4b9ff42f5d7d58208237dc1e73d14423c68
Contents?: true
Size: 1.44 KB
Versions: 6
Compression:
Stored size: 1.44 KB
Contents
require('/jquery.js'); stylesheet('/styles.css'); describe('templates', function() { describe('with template', function() { template('one_template.html'); it("should append the template to the test div", function() { expect($('#test h1#from-template').length).toEqual(1); }); it("should change stuff in one test...", function() { expect($('#test h1#from-template').length).toEqual(1); $('#test h1#from-template').attr('id', 'changed'); expect($('#test h1#changed').length).toEqual(1); expect($('#test h1#from-template').length).toEqual(0); }); it("... should have been removed before the next starts", function() { expect($('#test h1#changed').length).toEqual(0); expect($('#test h1#from-template').length).toEqual(1); }); }); describe('with another template', function() { template('another_template.html'); it("should append the template to the test div", function() { expect($('#test h1#another-template').length).toEqual(1); }); }); describe('with template with script tags', function() { template('script_tags.html'); it("should append the template to the test div", function() { expect($('#test h1#script-tags').length).toEqual(1); }); }); }); describe('stylesheet', function() { template('one_template.html'); it("should style the template", function() { expect($('#from-template').css('width')).toEqual('300px'); }); });
Version data entries
6 entries across 6 versions & 1 rubygems