Sha256: 34bc127289d11e6b65e3c78ec212f7482aec531958776141a834fcc6e92a80b5
Contents?: true
Size: 866 Bytes
Versions: 18
Compression:
Stored size: 866 Bytes
Contents
module Gurke # class Background # # Return path to file containing this background. # # @return [String] File path. # attr_reader :file # Return line number where this background is defined. # # @return [Fixnum] Line number. # attr_reader :line # List of steps this background specifies. # # @return [Array<Step>] Steps. # attr_reader :steps # @api private attr_reader :raw # @api private def initialize(file, line, raw) @file = file @line = line @raw = raw @steps = RunList.new end # @api private # def run(runner, reporter, scenario, world) reporter.invoke :start_background, self, scenario steps.run runner, reporter, scenario, world ensure reporter.invoke :end_background, self, scenario end end end
Version data entries
18 entries across 18 versions & 1 rubygems