A Cucumber step to generate any number of objects, for any model A simple approach using Factory-Girl and some Ruby to prepare Cucumber scenarios with any number of objects, for any model The Problem When we write Cucumber scenarios, many times we’ll have to previously generate a certain number of records in the database. Then it becomes necessary to create several steps, each one capable to creat