Sha256: 7cf694013721fb17973ceb4d3d23e68ea228ef3b8e879448545de0d07fa818ca
Contents?: true
Size: 1.93 KB
Versions: 4
Compression:
Stored size: 1.93 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371410625.942842:@value"N{I" class:EFI"BundledAsset; FI"logical_path; FI"6teaspoon/base/reporters/html/failure_view_spec.js; TI" pathname; FI"n/Users/jejacks0n/Projects/teaspoon/spec/javascripts/teaspoon/base/reporters/html/failure_view_spec.coffee; FI"content_type; FI"application/javascript; FI" mtime; FI"2013-06-16T11:48:01-06:00; FI"length; Fi>I"digest; F"%08a069c0e60977cb5b68d2b43418b5b4I"source; FI">(function() { describe("Teaspoon.Reporters.HTML.FailureView", function() { describe("constructor", function() { return it("assigns @spec", function() { var spec, subject; spec = { foo: "bar" }; spyOn(Teaspoon.Reporters.HTML.FailureView.prototype, 'build'); subject = new Teaspoon.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 Teaspoon.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("<strong>_error_message_</strong>"); return expect(content).toContain("_error_stack_"); }); }); }); }).call(this); ; FI"required_assets_digest; F"%74d46f5af3769dfe48f11de3d5e3b6ecI" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
4 entries across 4 versions & 1 rubygems