From 9d54b40c63fbb1dbe701e6b9f9f510969913e9bd Mon Sep 17 00:00:00 2001 From: bmc <> Date: Wed, 8 Mar 2006 17:25:40 +0000 Subject: [PATCH] * blah. rex exceptions git-svn-id: file:///home/svn/incoming/trunk@3559 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/text.rb.ut.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rex/text.rb.ut.rb b/lib/rex/text.rb.ut.rb index a24ac3ad33..25ea0642fc 100644 --- a/lib/rex/text.rb.ut.rb +++ b/lib/rex/text.rb.ut.rb @@ -4,7 +4,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..')) require 'test/unit' require 'rex/text' - +require 'rex/exceptions' class Rex::Text::UnitTest < Test::Unit::TestCase def test_uri_encode @@ -116,7 +116,7 @@ class Rex::Text::UnitTest < Test::Unit::TestCase assert_equal('%u0102%uff00', Rex::Text.to_hex(str, '%u', 2), 'to_hex with chunk size of 2') # to_hex, without providing enouigh data to chunk on a given size - assert_raises(RuntimeError){ Rex::Text.to_hex('a', '', 2) } + assert_raises(Rex::RuntimeError){ Rex::Text.to_hex('a', '', 2) } assert_equal("\"\\x01\\x02\\xff\\x00\"\n", Rex::Text.to_ruby(str), 'to_ruby') assert_equal("\"\\x01\\x02\\xff\\x00\";\n", Rex::Text.to_perl(str), 'to_perl')