# \[ANN\] yamltest 0.5.0 Released

**URL:** <https://www.ruby-forum.com/t/ann-yamltest-0-5-0-released/158370>\
**Category:** Ruby\
**Created:** [January 22, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/ann-yamltest-0-5-0-released/158370 "2009-01-22T16:28:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gazoduc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c5a1d2/32.png) [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Post date:** [January 22, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/ann-yamltest-0-5-0-released/158370/1 "2009-01-22T16:28:29Z")

</div>

This is the first release for yamltest, freshly extracted from zena, a  
rails CMS ([http://zenadmin.org](http://zenadmin.org)).

# yamltest

yamltest is a simple helper to write parts of your unit tests using  
yaml. For a real world example of such tests, please have a look at zafu  
parser (currently in zena but soon as a separate gem too) :

> <https://github.com/zena/zena/blob/3e81845038343c779394aeb4eb1cf890e08a260c/lib/parser/test/parser/zafu.yml>

Basically yamltest writes tests for you. You define them in a YAML file:

capitalize\_should\_work:  
src: “london”  
res: “London”

You can also use a context that will be passed to your “yt\_parse”  
method. Or format your different result keys (‘sql’, ‘res’, ‘tem’,  
whatever) as a regular expression:

template\_should\_contain\_node  
src: “\<%= show\_node %\>”  
tem: “/node/”

current site: [http://github.com/zena/yamltest/tree](http://github.com/zena/yamltest/tree)

install: sudo gem install yamltest

Changes:

## yamltest 0.5.0 2009-01-21

- 1 major improvement
  - First release after extraction from zena ([http://zenadmin.org](http://zenadmin.org)).  
[gaspard]
