spec failure - description

This commit is contained in:
Steve Conover
2011-02-28 17:13:04 -08:00
parent 9704550b33
commit 5018f0d1c2
2 changed files with 44 additions and 1 deletions

View File

@@ -153,6 +153,29 @@ describe("TrivialNodeReporter", function() {
});
describe('Finishes', function(){
describe('Spec failure information', function(){
it("prints suite and spec descriptions together as a sentence", function(){
this.reporter.suiteResults = [
{description:"The oven", failedSpecResults:[
{description:"heats up"},
{description:"cleans itself"}
]},
{description:"The mixer", failedSpecResults:[
{description:"blends things together"}
]}
]
this.reporter.reportRunnerResults(failingRun);
expect(this.fakeSys.getOutput()).toContain("The oven heats up");
expect(this.fakeSys.getOutput()).toContain("The oven cleans itself");
expect(this.fakeSys.getOutput()).toContain("The mixer blends things together");
});
})
describe('Finished line', function(){
it("prints the elapsed time in the summary message", function(){