o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371404967.9832819: @value"”{I" class:EFI"BundledAsset;FI"logical_path;FI"%teaspoon/angular/models_aspec.js;TI" pathname;FI"[/Users/jejacks0n/Projects/teabag/spec/javascripts/teaspoon/angular/models_aspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" length;Fi¨ I" digest;F"%bec9e1895c90d55762396dab676ffe54I" 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); ;FI"required_assets_digest;F"%16d3799743540c0f913221b6d8610902I" _version;F"%6776f581a4329e299531e1d52aa59832