o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371404959.214186: @value"œ{I" class:EFI"ProcessedAsset;FI"logical_path;FI"%teaspoon/jasmine/models_jspec.js;FI" pathname;FI"[/Users/jejacks0n/Projects/teabag/spec/javascripts/teaspoon/jasmine/models_jspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" length;FiaI" digest;F"%f1f10a4aa7c1a332b1f7ee5b847c19bdI" source;FI"a(function() { describe("Jasmine Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.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 Teaspoon.Spec(this.mockSpec); return expect(spec.result()).toEqual({ status: "failed", skipped: false }); }); }); }); }); describe("Jasmine Teaspoon.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 Teaspoon.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); ;TI"dependency_digest;F"%e22631120a3ca2c7659615671cc22047I"required_paths;F[I"[/Users/jejacks0n/Projects/teabag/spec/javascripts/teaspoon/jasmine/models_jspec.coffee;FI"dependency_paths;F[{I" path;FI"[/Users/jejacks0n/Projects/teabag/spec/javascripts/teaspoon/jasmine/models_jspec.coffee;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" digest;F"%1d8acd8a930d441f71d7665a61009087I" _version;F"%6776f581a4329e299531e1d52aa59832