Coulda: A Cucumber-like DSL for BDD
Coulda works like Cucumber in that it's a Domain Specific Language for capturing the behaviour expected by your code, as part of the Behavior Driven Develoment approach (BDD). Others have noted it's a little like the RSpec story runner.
Where Coulda differs is that instead of using Gherkin to convert your statements about the behavior to code using regular expressions, it uses standard method calls. This is less of a cognitive leap for the developer... with Coulda, you can test like you code.
require 'rubygems' require 'coulda' include Coulda Feature "feature name" do in_order_to "foo" as_a "bar" i_want_to "blech" def something end def expectation end Scenario "pending scenario" Scenario "another scenario" do Given "a pending prereq" When "something happens" do something end Then "expect something else" do expectation end end Scenario "that is live" do Given "foo" do; end When "bar" do; end Then "blech" do; end end end