Sha256: 016528bf37edda2c7607dd7f7f7173019aeb60dec026c8af99e53384e516904f

Contents?: true

Size: 664 Bytes

Versions: 8

Compression:

Stored size: 664 Bytes

Contents

describe(rio.Id, {
	"that is reified": {
		"should immediately call anything passed in to doAfterReification": function() {
			var rioId = new rio.Id(25);
			rioId.doAfterReification(function(){}.shouldBeCalled());
		}
	},
	
	"that is not reified": {
		beforeEach: function() {
			this.rioId = new rio.Id();
		},
		"should not call anything passed into doAfterReification right away": function() {
			this.rioId.doAfterReification(function(){}.shouldNotBeCalled());
		},
		"should call whatever is passed into doAfterReification after reification": function() {
			this.rioId.doAfterReification(function(){}.shouldBeCalled());
			this.rioId.reify(1234);
		}
	}
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riojs-0.0.7 public/javascripts/specs/lib/id_spec.js
riojs-0.0.6 public/javascripts/specs/lib/id_spec.js
riojs-0.0.5 public/javascripts/specs/lib/id_spec.js
riojs-0.0.4 public/javascripts/specs/lib/id_spec.js
riojs-0.0.3 public/javascripts/specs/lib/id_spec.js
riojs-0.0.2 public/javascripts/specs/lib/id_spec.js
riojs-0.0.1 public/javascripts/specs/lib/id_spec.js
riojs-0.0.0 public/javascripts/specs/lib/id_spec.js