LinkedListUnderflowException := Exception clone LinkedList := Object clone do( add := method() ) doFile("iospec.io") context("An empty linked list", setup( linkedlist := LinkedList clone ) specify("should accept an item when sent add", should not raise linkedlist add(Object clone) ) specify("should complain when sent pop", should raise(LinkedListUnderflowException) linkedlist pop ) )