o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371403722.5204082: @value"@{I" class:EFI"BundledAsset;FI"logical_path;FI"4teabag/base/reporters/html/failure_view_spec.js;TI" pathname;FI"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-21T15:52:04-07:00;FI" length;Fi6I" digest;F"%d466cccfa6ef6dd42a43c3909903a2a2I" source;FI"6(function() { describe("Teabag.Reporters.HTML.FailureView", function() { describe("constructor", function() { return it("assigns @spec", function() { var spec, subject; spec = { foo: "bar" }; spyOn(Teabag.Reporters.HTML.FailureView.prototype, 'build'); subject = new Teabag.Reporters.HTML.FailureView(spec); return expect(subject.spec).toBe(spec); }); }); return describe("#build", function() { beforeEach(function() { this.mockSpec = { link: "_link_", fullDescription: "_full_description_", errors: function() { return [ { message: "_error_message_", stack: "_error_stack_" } ]; } }; this.subject = new Teabag.Reporters.HTML.FailureView(this.mockSpec); return this.subject.build(); }); return it("builds the html", function() { var content; content = this.subject.el.innerHTML; expect(content).toContain('href="_link_"'); expect(content).toContain('_full_description_'); expect(content).toContain("_error_message_"); return expect(content).toContain("_error_stack_"); }); }); }); }).call(this); ;FI"required_assets_digest;F"%e29b095ebb55f72b7050c00e3e7d076cI" _version;F"%6776f581a4329e299531e1d52aa59832