Sha256: 265fd1f1e26c7217f2e53e4065016357b4bd2ce99fa13b77d0adab8baeac1f99

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

var spec = new QSpec("NinjsApplication");

spec.before = function() {
	this.app = new NinjsApplication('myapp');
};

spec.after = function() {
	delete this.app;
};

spec.should("create a ninjs application object", function() {
	this.app = new NinjsApplication('myapp');
	ok(is_defined(this.app), 'app is defined');
	ok(is_typeof(NinjsApplication, this.app), 'app is a valid NinjsApplication');
});

spec.should("create a NinjsModule", function() {
	this.app = new NinjsApplication('myapp');
	this.app.add_module('mymod');

	ok(is_typeof(NinjsModule, this.app.mymod), 'app.mymod is a valid NinjsModule');
});

spec.run_all();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ninjs-0.16.0 repository/ninjs/tests/application.test.js
ninjs-0.14.1 repository/ninjs/tests/application.test.js
ninjs-0.14.0 repository/ninjs/tests/application.test.js