Sha256: 6f5c7bcf2fbe7505d6c8a85470c03fd78775cc68e705b4932bfda8de7e4ae957
Contents?: true
Size: 621 Bytes
Versions: 18
Compression:
Stored size: 621 Bytes
Contents
describe("Mod.Application", function() { it("should require a name attribute", function() { expect(function() { var app = new Mod.Application; }).toThrow("new Mod.Application(name): name is undefined"); }); it("should create a new application instance", function() { var app = new Mod.Application('app'); expect(app).toBeTruthy(); expect(app.name).toEqual('app'); }); it("should have a module factory method", function() { var app = new Mod.Application('app'); app.add_module('foo'); expect(app.foo).toBeTruthy(); expect(app.foo.name).toEqual('foo'); }); });
Version data entries
18 entries across 15 versions & 1 rubygems