This post originated from an RSS feed registered with Python Buzz
by Ian Bicking.
Original Post: Doctest for Ruby
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Finally, someone wrote a version of doctest for Ruby.
Recently I’ve been writing most of my tests using stand-alone doctest files. It’s a great way to do TDD — mostly because the cognitive load is so low. Also, I write my examples but don’t write my output, then copy the output after visually confirming [...]