# File lib/cucumber/parser/gherkin_builder.rb, line 43 def scenario(statement) scenario = Ast::Scenario.new( @background, Ast::Comment.new(statement.comments.map{|comment| comment.value}.join("\n")), Ast::Tags.new(nil, statement.tags.map{|tag| tag.name}), statement.line, statement.keyword, legacy_name_for(statement.name, statement.description), steps=[] ) @feature.add_feature_element(scenario) @background.feature_elements << scenario if @background @step_container = scenario scenario.gherkin_statement(statement) end