Permalink
Browse files

should not report missing steps if there is none

  • Loading branch information...
1 parent 7f7cdda commit fcba775a82e6736fbb02652a1afc814df5b63b06 @gugod committed Jun 18, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Test/Cukes.pm
View
@@ -71,6 +71,7 @@ sub runtests {
}
sub report_missing_steps {
+ return if @missing_steps == 0;
Test::More::note("There are missing step definitions, fill them in:");
for my $step_text (@missing_steps) {
my ($word, $text) = ($step_text =~ /^(Given|When|Then) (.+)$/);

0 comments on commit fcba775

Please sign in to comment.