Sha256: ce1aa5f607479876e59ce4be88368edea07294dcdc50774b4fd633f37df1a431

Contents?: true

Size: 502 Bytes

Versions: 2

Compression:

Stored size: 502 Bytes

Contents

describe("NinjsApplication", function() {
  var app;
  
  beforeEach(function() {
    app = new NinjsApplication('myapp');
  });
  
  afterEach(function() {
    app = undefined;
  });

  it("should create a ninjs application object", function() {
    expect(is_defined(app)).toBeTruthy();
    expect(is_typeof(NinjsApplication, app)).toBeTruthy();
  });

  it("should create a NinjsModule", function() {
  	app.add_module('mymod');
    expect(is_typeof(NinjsModule, app.mymod)).toBeTruthy();
  });

});

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
ninjs-framework-0.1.0 spec/javascripts/application_spec.js
ninjs-framework-0.1.0 spec/tmp/spec/javascripts/application_spec.js