o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1363461111.119616: @value"{{I" class:EFI"BundledAsset;FI"logical_path;FI"#teabag/angular/models_aspec.js;TI" pathname;FI"Y/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/angular/models_aspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-03-16T13:11:29-06:00;FI" length;Fi“ I" digest;F"%2d3b3617b7fdf7b06ee830d17830cb63I" source;FI"“ (function() { describe("Angular Teabag.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 Teabag.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 Teabag.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 Teabag.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 Teabag.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 Teabag.Spec(this.mockSpec); return _expect(spec.result()).toEqual({ status: "failed", skipped: false }); }); }); }); }); describe("Angular Teabag.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 Teabag.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); ;FI"required_assets_digest;F"%11e4584dec1a92e319bd86340598f051I" _version;F"%6776f581a4329e299531e1d52aa59832