Permalink
Browse files

Allow override of label for cucumber feature

  • Loading branch information...
1 parent e7457d8 commit da5564c0e80d23ab963af9d07ae4d578aa40b482 @tpope committed Jul 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/fivemat/cucumber.rb
View
@@ -2,8 +2,12 @@
module Fivemat
class Cucumber < ::Cucumber::Formatter::Progress
+ def label(feature)
+ feature.short_name
+ end
+
def before_feature(feature)
- @io.print "#{feature.short_name} "
+ @io.print "#{label(feature)} "
@io.flush
@exceptions = []
end

0 comments on commit da5564c

Please sign in to comment.