Sha256: f6eb9b306d2c98c3466545f95f33d675a6f79661e26ba27277ffc660666e407f

Contents?: true

Size: 575 Bytes

Versions: 5

Compression:

Stored size: 575 Bytes

Contents

module CucumberAnalytics

  # A class modeling a Cucumber Scenario.

  class Scenario < TestElement

    include Taggable


    # Creates a new Scenario object and, if *source* is provided, populates the
    # object.
    def initialize(source = nil)
      parsed_scenario = process_source(source)

      super(parsed_scenario)

      @tags = []
      @tag_elements = []

      build_scenario(parsed_scenario) if parsed_scenario
    end


    private


    def build_scenario(scenario)
      populate_element_tags(scenario)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber_analytics-1.4.2 lib/cucumber_analytics/scenario.rb
cucumber_analytics-1.4.1 lib/cucumber_analytics/scenario.rb
cucumber_analytics-1.4.0 lib/cucumber_analytics/scenario.rb
cucumber_analytics-1.3.0 lib/cucumber_analytics/scenario.rb
cucumber_analytics-1.2.0 lib/cucumber_analytics/scenario.rb