Sha256: 77bd4f1a4a314bb41d94e2f171f2d765e9d843d585b2003e53d900ccd23fac67
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 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() { // Env-js does not have support for stylesheets if (Evergreen.driver != "envjs") { expect(document.getElementById('from-template').offsetWidth).toEqual(300) } }); });
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rails31-evergreen-0.4.1 | spec/suite1/spec/javascripts/templates_spec.js |
evergreen-0.4.1 | spec/suite1/spec/javascripts/templates_spec.js |