Forum: Ruby [ANN] yamltest 0.5.0 Released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gaspard B. (Guest)
on 2009-01-22 17:28
This is the first release for yamltest, freshly extracted from zena, a
rails CMS (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) :
http://tinyurl.com/d35yr7

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

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).
[gaspard]
This topic is locked and can not be replied to.