Sha256: 48ee2012a133e427cadd5e4d225596ef9e46bcd7ad9222325d1973c3df15bf6c

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

(function($){
	$.jasmine = {
		isReady: false,
		rootId: 'specContainer',
		init: function() {
			$('body').append('<div id="'+this.rootId+'"></div>');
			this.isReady = true;
		},
		inject:function(html) {
			if(this.isReady !== true) this.init();
      $('#'+this.rootId).append(html);
		},
		tidyUp: function() {
			$('#'+this.rootId).remove();
			this.isReady = false;
		}
	};	
})(jQuery);
jQuery(function($){
  $.jasmine.init();
});
afterEach(function(){
  $.jasmine.tidyUp();
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cruyff-0.1.0 spec/js_lib/jasmine-fixture.js
cruyff-0.0.1 spec/js_lib/jasmine-fixture.js