Permalink
Browse files

Print progress indicators in colour

  • Loading branch information...
1 parent 0af927e commit 9f1b547d79275491536a45ff6c26b7470d56aa70 Brian Dunn committed with Hashrocket Workstation Jun 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/flatware/cucumber/formatter.rb
View
4 lib/flatware/cucumber/formatter.rb
@@ -1,3 +1,4 @@
+require 'cucumber/formatter/console'
module Flatware
module Cucumber
class Formatter
@@ -37,6 +38,7 @@ def add_step_result(status, exception)
end
StepResult = Struct.new(:status, :exception, :scenario) do
+ include ::Cucumber::Formatter::Console
FORMATS = {
:passed => '.',
:failed => 'F',
@@ -50,7 +52,7 @@ def passed?
end
def progress
- FORMATS[status]
+ format_string FORMATS[status], status
end
end
end

0 comments on commit 9f1b547

Please sign in to comment.