Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Inherit directly from Ast::Visitor.

We don't need to worry too much about outputting some '.'s to STDOUT, so let's just inherit directly from the Visitor.
  • Loading branch information...
commit dc714d60593ad1b90ac8cf094c4bedb8321d7b56 1 parent 8df0657
@mathie mathie authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/ci/reporter/cucumber.rb
View
9 lib/ci/reporter/cucumber.rb
@@ -6,8 +6,7 @@
tried_gem = false
begin
require 'cucumber'
- require 'cucumber/formatter/progress'
- require 'cucumber/formatter/pretty'
+ require 'cucumber/ast/visitor'
rescue LoadError
unless tried_gem
tried_gem = true
@@ -47,13 +46,13 @@ def location
end
end
- class Cucumber < ::Cucumber::Formatter::Progress
+ class Cucumber < ::Cucumber::Ast::Visitor
attr_accessor :test_suite, :report_manager, :feature_name
- def initialize(*args, &block)
+ def initialize(step_mother, io, options)
self.report_manager = ReportManager.new("cucumber")
- super
+ super(step_mother)
end
def visit_feature_name(name)
Please sign in to comment.
Something went wrong with that request. Please try again.