# File tests/tokenizertester.rb, line 150 def test_arguments expect_error(42, /illegal argument/) expect_error([], /illegal argument/) begin # We already tested tempfile arguments elsewhere (see # test_from_tempfile). str = StringSubclass.new('abc') # should be OK rescue NQXML::ParserError => ex assert_fail("unexpected parser error on line #{ex.line}: #{$!}") end end