Skill Level: Beginner
Time Limit: 30 minutes
Write a feature test in Gherkin and implement steps_definitions that best match the intended behaviours and features requested by the 'client'
- The client is a Classy Hotel that caters to animals
- They have created a script to track their clientele
- The hotel manager wants the script to keep track of the name, type and age of every animal
- Test the
Animalobject and ensure that it has the right output for its reader methodsname, type, age, old?
- Checkout the sample feature & steps defs named
greeter.feature&greeter_steps.rb cloneyour repo on to your computercdinto your directorybundleto pull in this project's dependencies- navigate to
features/animal.featureand write your feature - navigate to
features/step_definitions/animal_steps.rband write your step defs