Sha256: 64b70456e0cfb974e2a08015d97b4260e7d86ac5c8b4266be08dc36bddb24122

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 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 = []

      build_scenario(parsed_scenario) if parsed_scenario
    end


    private


    def build_scenario(scenario)
      populate_element_tags(scenario)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_analytics-1.1.1 lib/cucumber_analytics/scenario.rb
cucumber_analytics-1.0.0 lib/cucumber_analytics/scenario.rb