1
I would like you to help me solve this doubt, I’m trying to reference a step definition
inside another in the same file to avoid repeating 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 of what I want. I’m still a beginner so any mistakes let me know.