Ruby Testing Minimalist support
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!
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.





