o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360717989.4846442: @value"+{I" class:EFI"BundledAsset;FI"logical_path;FI"#teabag/jasmine/models_jspec.js;TI" pathname;FI"Y/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/jasmine/models_jspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-21T15:52:04-07:00;FI" length;FiCI" digest;F"%f3002f87621324814000614fd6f1b545I" source;FI"C(function() { describe("Jasmine Teabag.Spec", function() { beforeEach(function() { var _this = this; this.mockSuite = { getFullName: function() { return "_full jasmine name_"; } }; this.mockSpecResultsItems = [ { message: "_jasmine_message1_", trace: { stack: "_jasmine_stack_trace1_" }, passed: function() { return false; } }, { message: "_jasmine_message2_", trace: { stack: "_jasmine_stack_trace2_" }, passed: function() { return false; } } ]; this.mockSpecResults = { skipped: false, passed: function() { return true; }, getItems: function() { return _this.mockSpecResultsItems; } }; return this.mockSpec = { description: "_jasmine_description_", viewId: 42, pending: false, suite: this.mockSuite, getFullName: function() { return "_full jasmine description_"; }, results: function() { return _this.mockSpecResults; } }; }); describe("constructor", function() { return it("has the expected properties", function() { var spec; spec = new Teabag.Spec(this.mockSpec); expect(spec.fullDescription).toBe("_full jasmine description_"); expect(spec.description).toBe("_jasmine_description_"); expect(spec.link).toBe("?grep=_full%20jasmine%20description_"); expect(spec.parent).toBe(this.mockSuite); expect(spec.suiteName).toBe("_full jasmine name_"); expect(spec.viewId).toBe(42); return expect(spec.pending).toBe(false); }); }); describe("#errors", function() { return it("returns the expected object", function() { var spec; spec = new Teabag.Spec(this.mockSpec); expect(spec.errors()).toEqual([ { message: "_jasmine_message1_", stack: "_jasmine_stack_trace1_" }, { message: "_jasmine_message2_", stack: "_jasmine_stack_trace2_" } ]); spyOn(this.mockSpecResultsItems[0], "passed").andReturn(true); spec = new Teabag.Spec(this.mockSpec); return expect(spec.errors()).toEqual([ { message: "_jasmine_message2_", stack: "_jasmine_stack_trace2_" } ]); }); }); describe("#getParents", function() { return it("gets the parent suites", function() { var spec; spec = new Teabag.Spec(this.mockSpec); return expect(spec.getParents()[0].fullDescription).toEqual("_full jasmine 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 }); }); }); describe("skipped", function() { return it("returns the expected object", function() { var spec; this.mockSpecResults.skipped = true; spec = new Teabag.Spec(this.mockSpec); return expect(spec.result()).toEqual({ status: "passed", skipped: true }); }); }); describe("pending", function() { return it("returns the expected object", function() { var spec; this.mockSpec.pending = true; spec = new Teabag.Spec(this.mockSpec); return expect(spec.result()).toEqual({ status: "pending", skipped: false }); }); }); return describe("failing", function() { return it("returns the expected object", function() { var spec; spyOn(this.mockSpecResults, "passed").andReturn(false); spec = new Teabag.Spec(this.mockSpec); return expect(spec.result()).toEqual({ status: "failed", skipped: false }); }); }); }); }); describe("Jasmine Teabag.Suite", function() { beforeEach(function() { this.mockParentSuite = {}; return this.mockSuite = { description: "_jasmine_description_", parentSuite: this.mockParentSuite, viewId: 42, getFullName: function() { return "_full jasmine description_"; } }; }); return describe("constructor", function() { return it("has the expected properties", function() { var suite; suite = new Teabag.Suite(this.mockSuite); expect(suite.fullDescription).toBe("_full jasmine description_"); expect(suite.description).toBe("_jasmine_description_"); expect(suite.link).toBe("?grep=_full%20jasmine%20description_"); expect(suite.parent).toBe(this.mockParentSuite); return expect(suite.viewId).toBe(42); }); }); }); }).call(this); ;FI"required_assets_digest;F"%f34473f73f904cb1f79a56d96921d5c4I" _version;F"%6776f581a4329e299531e1d52aa59832