class Spinach::Scenario
Attributes
feature[RW]
lines[RW]
name[RW]
steps[RW]
Public Class Methods
new(feature)
click to toggle source
# File lib/spinach/scenario.rb, line 6 def initialize(feature) @feature = feature @steps = [] @tags = [] @lines = [] end
Public Instance Methods
ordering_id()
click to toggle source
Identifier used by orderers.
Needs to involve the relative file path and line number so that the ordering a seed generates is stable across both runs and machines.
@api public
# File lib/spinach/scenario.rb, line 19 def ordering_id "#{feature.ordering_id}:#{lines.first}" end