Sha256: 30c57ab30af7b66e4aef8b0639ad11e250dc0fcd3f549b4f4b668777ce8a3bc6
Contents?: true
Size: 891 Bytes
Versions: 9
Compression:
Stored size: 891 Bytes
Contents
describe "Teabag.Reporters.HTML.FailureView", -> describe "constructor", -> it "assigns @spec", -> spec = {foo: "bar"} spyOn(Teabag.Reporters.HTML.FailureView.prototype, 'build') subject = new Teabag.Reporters.HTML.FailureView(spec) expect(subject.spec).toBe(spec) describe "#build", -> beforeEach -> @mockSpec = link: "_link_", fullDescription: "_full_description_" errors: -> [{message: "_error_message_", stack: "_error_stack_"}] @subject = new Teabag.Reporters.HTML.FailureView(@mockSpec) @subject.build() it "builds the html", -> content = @subject.el.innerHTML expect(content).toContain('href="_link_"') expect(content).toContain('_full_description_') expect(content).toContain("<strong>_error_message_</strong>") expect(content).toContain("_error_stack_")
Version data entries
9 entries across 9 versions & 1 rubygems