{I" class:EFI"BundledAsset;FI"logical_path;FI"%teaspoon/angular/models_aspec.js;TI" pathname;FI"]/Users/jejacks0n/Projects/teaspoon/spec/javascripts/teaspoon/angular/models_aspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;Fl+Qú½QI" length;Fi¨ I" digest;F"%6b09112ee8aaaad6fc8924d650b57152I" source;FI"¨ (function() { describe("Angular Teaspoon.Spec", function() { beforeEach(function() { this.mockStep = { name: "_step name_", startTime: 1363303012091, endTime: 1363303012790, duration: 699, status: "failure", line: "_step line_", error: "_step error_" }; return this.mockSpec = { id: 1, fullDefinitionName: "_full angular name_", name: "_angular description_", startTime: 1363303012081, endTime: 1363303013128, duration: 1047, status: "success", steps: [this.mockStep] }; }); describe("#constructor", function() { return it("has the expected properties", function() { var spec; spec = new Teaspoon.Spec(this.mockSpec); _expect(spec.fullDescription).toBe("_full angular name_: _angular description_"); _expect(spec.description).toBe("_angular description_"); _expect(spec.link).toBe("#"); _expect(spec.suiteName).toBe("_full angular name_"); _expect(spec.viewId).toBe(1); return _expect(spec.pending).toBe(false); }); }); describe("#errors", function() { return it("returns the expected object", function() { var spec; spec = new Teaspoon.Spec(this.mockSpec); return _expect(spec.errors()).toEqual([ { message: "_step error_", stack: ["_step line_"] } ]); }); }); describe("#getParents", function() { return it("gets the parent suites", function() { var spec; spec = new Teaspoon.Spec(this.mockSpec); return _expect(spec.getParents()[0].fullDescription).toBe("_full angular name_"); }); }); return describe("#result", function() { describe("passing", function() { return it("returns the expected object", function() { var spec; spec = new Teaspoon.Spec(this.mockSpec); return _expect(spec.result()).toEqual({ status: "passed", skipped: false }); }); }); return describe("failing", function() { return it("returns the expected object", function() { var spec; this.mockSpec.status = "failure"; spec = new Teaspoon.Spec(this.mockSpec); return _expect(spec.result()).toEqual({ status: "failed", skipped: false }); }); }); }); }); describe("Angular Teaspoon.Suite", function() { beforeEach(function() { return this.mockSpec = { fullDefinitionName: "_full angular name_", name: "_angular description_" }; }); return describe("#constructor", function() { return it("has the expected properties", function() { var suite; suite = new Teaspoon.Suite(this.mockSpec); _expect(suite.fullDescription).toBe("_full angular name_"); _expect(suite.description).toBe("_full angular name_"); _expect(suite.link).toBe("#"); _expect(suite.parent).toEqual({ root: true }); return _expect(suite.viewId).toBe(null); }); }); }); }).call(this); ;TI"required_assets_digest;F"%a5d341237185b19890bf0db04b2ad622I" _version;F"%7097359102b3db973d6242ce2db779ef