Sha256: b1329a1937839aaf348e34e7909dcd7ce729007de27212bf8104c8fa81da1771
Contents?: true
Size: 897 Bytes
Versions: 9
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true 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
9 entries across 9 versions & 1 rubygems