Skip to content

Commit

Permalink
Added a test for step comments.
Browse files Browse the repository at this point in the history
fixes #50
  • Loading branch information
Airblader committed Jun 27, 2016
1 parent 49e20d0 commit 5c82271
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,14 @@ public void substeps_access_are_not_printed_in_report() throws UnsupportedEncodi
+ " And the substep value referred in the step is 4" );
}

@Test
public void step_comments_are_printed() throws UnsupportedEncodingException {
getScenario().startScenario( "comments" );

given().something().comment( "This is a comment." );

String string = PlainTextReporter.toString( getScenario().getScenarioModel() );
assertThat( string ).contains( "something [This is a comment.]" );
}

}

0 comments on commit 5c82271

Please sign in to comment.