From: Caleb Clausen Date: 2010-05-01T07:47:19+09:00 Subject: Re: What is the standard way to put a standard set of asserts into a called subroutine in test/unit? On 4/30/10, Xeno Campanoli / Eskimo North and Gmail wrote: > I want to do something like: > > require 'test/unit' > > class TestMyStuff < Test::Unit::TestCase > > def mysub(x,y) > assert_not_nil(x,"x nil") > assert_not_nil(y,"y nil") > assert(x == y,"messages") > end > > def test_my_stuff > mysub(X,Y) > end > > end Yes, and? That works perfectly for me. I do it all the time.