You can use ruby's built-in error testing
raise "Message you want to throw when error happens" if/unless "Condition when you want to throw the error "
OR
, "NoMethodError: undefined ` assert" main: Object", script:
require "test/unit/assertions"
include Test::Unit::Assertions
user3521696