Sha256: 1336570d7d6518422b61c630c8df073f4bd77c6ca01b555f5340f7a54414c575
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
def init super @feature = object sections.push :feature sections.push :background if object.background sections.push :scenarios if object.scenarios end def background @scenario = @feature.background @id = "background" erb(:scenario) end def scenarios scenarios = "" @feature.scenarios.each_with_index do |scenario,index| @scenario = scenario @id = "scenario#{index}" scenarios += erb(:scenario) end scenarios end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-in-the-yard-1.4 | lib/templates/default/feature/setup.rb |