o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360902197.808217: @value"({I" class:EFI"BundledAsset;FI"logical_path;FI"!teabag/mocha/models_mspec.js;TI" pathname;FI"W/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/mocha/models_mspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-21T15:52:04-07:00;FI" length;FiDI" digest;F"%94a16e9b15782bd7c9fe1cf175faa8f6I" source;FI"D(function() { describe("Mocha Teabag.Spec", function() { beforeEach(function() { this.mockSuite = { fullTitle: function() { return "_full mocha name_"; }, parent: { root: true } }; return this.mockSpec = { title: "_mocha_description_", parent: this.mockSuite, viewId: 420, pending: false, state: "passed", err: { message: "_mocha_message_", stack: "_mocha_stack_trace_" }, fullTitle: function() { return "_full mocha description_"; } }; }); describe("constructor", function() { return it("has the expected properties", function() { var spec; spec = new Teabag.Spec(this.mockSpec); expect(spec.fullDescription).to.be("_full mocha description_"); expect(spec.description).to.be("_mocha_description_"); expect(spec.link).to.be("?grep=_full%20mocha%20description_"); expect(spec.parent).to.be(this.mockSuite); expect(spec.suiteName).to.be("_full mocha name_"); expect(spec.viewId).to.be(420); return expect(spec.pending).to.be(false); }); }); describe("#errors", function() { return it("returns the expected object", function() { var spec; spec = new Teabag.Spec(this.mockSpec); return expect(spec.errors()).to.eql([ { message: "_mocha_message_", stack: "_mocha_stack_trace_" } ]); }); }); describe("#getParents", function() { return it("gets the parent suites", function() { var spec; spec = new Teabag.Spec(this.mockSpec); return expect(spec.getParents()[0].fullDescription).to.be("_full mocha 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()).to.eql({ status: "passed", skipped: false }); }); }); describe("skipped", function() { return it("returns the expected object", function() { var spec; this.mockSpec.state = "skipped"; spec = new Teabag.Spec(this.mockSpec); return expect(spec.result()).to.eql({ 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()).to.eql({ status: "pending", skipped: false }); }); }); return describe("failing", function() { return it("returns the expected object", function() { var spec; this.mockSpec.state = "failed"; spec = new Teabag.Spec(this.mockSpec); return expect(spec.result()).to.eql({ status: "failed", skipped: false }); }); }); }); }); describe("Mocha Teabag.Suite", function() { beforeEach(function() { this.mockParentSuite = { root: false }; return this.mockSuite = { fullTitle: function() { return "_full mocha description_"; }, title: "_mocha_description_", viewId: 420, parent: this.mockParentSuite }; }); return describe("constructor", function() { return it("has the expected properties", function() { var suite; suite = new Teabag.Suite(this.mockSuite); expect(suite.fullDescription).to.be("_full mocha description_"); expect(suite.description).to.be("_mocha_description_"); expect(suite.link).to.be("?grep=_full%20mocha%20description_"); expect(suite.parent).to.be(this.mockParentSuite); return expect(suite.viewId).to.be(420); }); }); }); }).call(this); ;FI"required_assets_digest;F"%818460caf024652fb8370da5d357d3c2I" _version;F"%6776f581a4329e299531e1d52aa59832