Turn doctests into specs