lib/cucumber/ast/tree_walker.rb in cucumber-0.8.7 vs lib/cucumber/ast/tree_walker.rb in cucumber-0.9.0

- old
+ new

@@ -1,13 +1,13 @@ module Cucumber module Ast # Walks the AST, executing steps and notifying listeners class TreeWalker - attr_accessor :options #:nodoc: + attr_accessor :configuration #:nodoc: attr_reader :step_mother #:nodoc: - def initialize(step_mother, listeners = [], options = {}, io = STDOUT) - @step_mother, @listeners, @options, @io = step_mother, listeners, options, io + def initialize(step_mother, listeners = [], configuration = Cucumber::Configuration.default) + @step_mother, @listeners, @configuration = step_mother, listeners, configuration end def visit_features(features) broadcast(features) do features.accept(self) \ No newline at end of file