Assert exception raised
require 'test/unit' class TestRoman < Test::Unit::TestCase def test_range assert_raise(RuntimeError) { 0 } assert_nothing_raised() { 1 } end end