coulda - Cucumber-like BDD power without the magic
Coulda is a new testing library by Evan Light that provides “Cucumber-like BDD power but with an internal DSL.” Further: “coulda believes that the best way to reuse code is the good ol’ fashioned method. Instead of sharing files of regexps mapped to procs, you just write methods. That simple.
Comments
So it’s like the rspec story runner gem?
Waiting for “havetoa” and “musta” ;)
I was thinking more “Woulda” next :)
Yep, it’s a little like StoryRunner prior to the introduction of plain text stories. But it’s also small, simple, and Test::Unit under the hood.
Evan, when you throw up a blog post and an example, please post back here. Would love to see this in action
Actually, I have one right here: http://evan.tiggerpalace.com/articles/2009/09/12/coulda/. The sample code is stupid simple but it gives you a flavor for it.
Was just about to post a link to your blog post, Evan - but you beat me to it! :)
Just for the lazy: http://evan.tiggerpalace.com/articles/2009/09/12/coulda/
Duly noted I should add an auto link feature for URLs :)
Woulda: http://github.com/seanhussey/woulda :)
rspec power without rspec syntax any1?
btw, we just covered this on RubyInside.
Post a comment