class Gherkin::Pickles::Compiler
def compile_scenario(feature_tags, background_steps, scenario, language, pickles, source)
def compile_scenario(feature_tags, background_steps, scenario, language, pickles, source) steps = scenario.steps.empty? ? [] : [].concat(pickle_steps(background_steps)) tags = [].concat(feature_tags).concat(scenario.tags) scenario.steps.each do |step| steps.push(pickle_step(step)) end pickle = Cucumber::Messages::Pickle.new( uri: source.uri, id: @id_generator.new_id, tags: pickle_tags(tags), name: scenario.name, language: language, ast_node_ids: [scenario.id], steps: steps ) pickles.push(pickle) end