Riot 介绍
Riot 是一个新的Ruby测试框架,作者是Justin
KNowlden。它的主要目的是提高测试的效率。Justin对Riot与Test::Unit进行了比较,测试结果显示Riot比Test::Unit的测试速度快一倍多。
测试示例:
context “a new user” do
setup { User.new(:email => '[email protected]’) }
asserts(“email address”) { topic.email }.equals('[email protected]’)
end