Tatva-Artha

meaning of "it"

Archive for the ‘ruby unit test’ tag

Ruby Testing Minimalist support

without comments

I have normally used irb shell or simple ruby scripts to try simple things out. I wondered what would be a minimalist unit test which would lend me all the assertion support and related goodies. Today I have it:

require 'test/unit'
class TestSort < Test::Unit::TestCase
def test_something
assert_equal(x,y)
end
end

Enjoy!

Written by admin

May 22nd, 2009 at 5:19 pm

Posted in All

Tagged with , ,