Sha256: 004891b6300a191cd4b98950dddfe6f46bb61817535eaaf35a1755c89268862b
Contents?: true
Size: 856 Bytes
Versions: 19
Compression:
Stored size: 856 Bytes
Contents
describe "Mocha Teabag.Reporters.Console", -> beforeEach -> @runner = {on: @onSpy = sinon.spy()} @reportRunnerStartingSpy = Teabag.Reporters.Console.prototype.reportRunnerStarting = sinon.spy() @reporter = new Teabag.Reporters.Console(@runner) describe "constructor", -> it "calls reporterRunnerStarting", -> assert.calledOnce(@reportRunnerStartingSpy, "foo") it "registers for 'fail', 'test end', and 'end'", -> assert.calledWith(@onSpy, "fail", @reporter.reportSpecResults) assert.calledWith(@onSpy, "test end", @reporter.reportSpecResults) assert.calledWith(@onSpy, "end", @reporter.reportRunnerResults) describe "#reportSpecResults", -> it "sets the error if one is passed in", -> spec = {} @reporter.reportSpecResults(spec, foo: "bar") expect(spec.err).to.eql(foo: "bar")
Version data entries
19 entries across 19 versions & 1 rubygems