spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 in teabag-0.5.1 vs spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 in teabag-0.5.2

- old
+ new

@@ -1,9 +1,47 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357882774.26437: @value"Ò{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1358363407.063924: @value"¬{I" class:EFI"ProcessedAsset;FI"logical_path;FI"4teabag/base/reporters/html/failure_view_spec.js;FI" 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"2012-12-14T00:03:09-07:00;FI" length;FidI" digest;F"%4957dca09c005fb6ae2c62984f51d990I" source;FI"d(function() { +mtime;FI"2013-01-14T11:17:36-07:00;FI" length;Fi5I" digest;F"%dfb16c9d9bdce8a54e2d96eece8bc6a7I" source;FI"5(function() { - describe("Teabag.Reporters.HTML.FailureView", 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("<strong>_error_message_</strong>"); + return expect(content).toContain("_error_stack_"); + }); + }); + }); }).call(this); -;TI"dependency_digest;F"%a8bddca23dfb20ae8a3f9249af2acf11I"required_paths;F[I"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI"dependency_paths;F[{I" path;FI"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI" -mtime;FI"2012-12-14T00:03:09-07:00;FI" digest;F"%a4cff75a2a5926cbcc31a1273b9e7546I" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"dependency_digest;F"%7d822687ed12e70940887793ceba9d6dI"required_paths;F[I"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI"dependency_paths;F[{I" path;FI"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI" +mtime;FI"2013-01-14T11:17:36-07:00;FI" digest;F"%4edec1f8bacc708603a987dded64451cI" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file