From: Mario Ruiz Date: 2012-09-07T21:43:21+09:00 Subject: assert All lines Hi, I'm trying to create a method to assert all lines and if any of them fail then the whole block will fail require 'test/unit' def assert_all(message="assert_block failed.") # :yields: _wrap_assertion do if (!yield) puts "ERROR" raise Test::Unit::AssertionFailedError.new(message.to_s) else puts "PERFECT" end end end class MyTest < Test::Unit::TestCase def test01 assert_all { 1==1 2==3 3==3 } end end But it seems like it is not giving an error in this case -- Posted via http://www.ruby-forum.com/.