Sha256: b648c0c0dd26cdb841d8651fe6423dedf294ed4dfc0edfce83b3643cae865920
Contents?: true
Size: 727 Bytes
Versions: 5
Compression:
Stored size: 727 Bytes
Contents
require 'turnip/node/base' require 'turnip/node/scenario' require 'turnip/node/scenario_outline' require 'turnip/node/background' module Turnip module Node class ScenarioGroupDefinition < Base def name @raw[:name] end def keyword @raw[:keyword] end def description @raw[:description] end def backgrounds @backgrounds ||= children.select do |c| c.is_a?(Background) end end def scenarios @scenarios ||= children.map do |c| case c when Scenario c when ScenarioOutline c.to_scenarios end end.flatten.compact end end end end
Version data entries
5 entries across 5 versions & 1 rubygems