There is only an insane amount of test frameworks available to the ruby; choosing one of them comes to personal preference. My personal favorite is riot
Riot , . - , "" , "". , , ( ).
readme
context "An Array" do
setup { Array.new }
context "with one element" do
setup { topic << "foo" }
asserts("is not empty") { !topic.empty? }
asserts("returns the element on #first") { topic.first == "foo" }
end
end
topic - , , setup. , "Assertion Macros", . denies, asserts . ,
context "An Array" do
setup { Array.new }
context "with one element" do
setup { topic << "foo" }
denies("is not empty") { topic }.empty?
asserts("returns the element on #first") { topic.first }.equals('foo')
end
end
, , , .
, , , , , , . , . , , , , .
, TDD, - spork. , 30-40 , , tdd. , spork , , . , .
rspec, /. ( , )