From: Brian Candler Date: 2012-05-01T02:19:30+09:00 Subject: Re: Need help with unit test Thi N. wrote in post #1058895: > I would expect to see assertion failure for test_typecheck but it does > not give any. Why do you expect to see assertion failure? As far as I can see, SimpleNumber.new('abc') raises a RuntimeError, and you're catching it with assert_raise(RuntimeError), i.e. you're correctly testing that your code raises an error. -- Posted via http://www.ruby-forum.com/.