I would like you to help me resolve this, I am trying to reference a step definition
within another in the same file to avoid repetition of code, of course if this is possible.
Example
Dado /^escolho a letra (.*) $/ do |letter| # algum codigo aqui end Dado /^entro com a letra (.*) (.*) vezes$/ do |letter, number| # repito aqui o step anterior usando 'number.times do' ou algo parecido do # step anterior end
This is just a simple example to pass an iia of what I want. I'm still a beginner so any mistake let me know.