If you treat each snippet as a test case, wouldn't any test case framework
do the job? (i.e. minitest, rspec, etc)

-Raj

On Sat, Dec 13, 2014 at 4:09 PM, Ryan Davis <ryand-ruby / zenspider.com>
wrote:
>
> Xmp was written for exactly this purpose.
>
>
> On Dec 13, 2014, at 15:31, Juanjo Conti <jjconti / gmail.com> wrote:
>
> Hi! In my local Ruby user group we're planning to write a book about Ruby.
> It'll contain snippets of code and we'd like to be hable to run those
> snippets in order to "test" the book and ensure all examples run with
> different versions or Ruby.
>
> Could you recommend me any tool or workflow to achieve this goal?
>
> Thanks in advance!
>
> --
> Juanjo Conti
> Mi primer novela ya se puede conseguir en:
> http://www.juanjoconti.com.ar/xolopes
>
>