Sha256: 2f9793d75917342e3dcc2308298db04432479f43d325bfcace6691825e9876da
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
describe("app", function() { describe("#_singleton", function() { it("should be able to create example singleton without initialize", function() { app._singleton.add('singletonAdd', function(){}); expect(app.singletonAdd).not.toEqual(undefined); }); it("should be able to create example singleton with initialize", function() { app._singleton.init('singletonInit', function(){return {toString: "Init"}}); expect(app.singletonInit['toString']).toEqual('Init'); }); }); it("should generate an uuid", function() { expect(app._uuid()).toMatch(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appjs-rails-1.0.2 | spec/javascripts/appSpec.js |