Sha256: 15159bf4729b24411557f1fc78c80e132c09b34dd64ddf561e1f1f6569edeb9a
Contents?: true
Size: 619 Bytes
Versions: 22
Compression:
Stored size: 619 Bytes
Contents
describe("Jax.ViewManager", function() { var views; beforeEach(function() { views = new Jax.ViewManager(); }); describe("with one registered view", function() { beforeEach(function() { views.push("controller/action", function() { }); }); it("should return the registered view", function() { expect(views.get("controller/action")).toBeKindOf(Jax.View); }); it("should throw an error when requesting a missing view", function() { expect(function() { return views.get("missing/action"); }).toThrow(new Error("Could not find view at 'missing/action'!")); }); }); });
Version data entries
22 entries across 22 versions & 1 rubygems