We cannot dilute the importance of testing software. The only way we can guarantee that our software works and will keep working after we have changed, refactored, and applied new features to it, is by testing it.
Create a file called
AnimalsSpec
insrc/test/scala/code/snippet
with the following content:import org.specs2.mutable._ class AnimalsSpec extends Specification { "Animals list" should { "contains 5 animals" in { val result = <ul><li><span class="name">Dog</span> - <span class="sname">(Canis lupus familiaris)</span></li><li><span class="name">Cat</span> - <span class="sname">(Felis catus)</span></li><li><span class="name">Giraffe</span> - <span class="sname">(Giraffa camelopardalis)</span></li><li><span class="name...