Ruby Animal Test Exercise PART 2

Write test cases to verify the I/O of the following methods of Animal and Dog.

  1. In the test class' setup method, create an instance of Animal and Dog.
  2. Animal object has the correct name property.
  3. Set a species and verify that the object property of species has the correct value.
  4. Invoking the walk method set the correct speed on the both objects.
  5. The animal object is an instance of Animal.
  6. The dog object is an instance of Dog.