T
Tomoyuki Kosimizu
Hi,
I have code like this:
class SuperTestCase << Test::Unit::TestCase
def test_doit
assert_equal('a', get_a)
end
def get_a
raise 'subclass responsibility'
end
end
class SubATest < SuperTestCase
def get_a
return 'a'
end
end
class SubBTest < SuperTestCase
def get_a
return ?a.chr
end
end
Of course, I can not use test/unit.rb. But I don't know other way to
run this. Would you tell me how not to run SuperTestCase?
(e-mail address removed)-net.ne.jp
I have code like this:
class SuperTestCase << Test::Unit::TestCase
def test_doit
assert_equal('a', get_a)
end
def get_a
raise 'subclass responsibility'
end
end
class SubATest < SuperTestCase
def get_a
return 'a'
end
end
class SubBTest < SuperTestCase
def get_a
return ?a.chr
end
end
Of course, I can not use test/unit.rb. But I don't know other way to
run this. Would you tell me how not to run SuperTestCase?
(e-mail address removed)-net.ne.jp