Tatva-Artha

meaning of "it"

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!

http://www.tatvartha.com/wp-content/plugins/sociofluid/images/digg_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/reddit_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/stumbleupon_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/delicious_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/google_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/twitter_16.png

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Written by admin

May 22nd, 2009 at 5:19 pm

Posted in All

Tagged with , ,

Leave a Reply