2005-12-17 14:46:23 +08:00
|
|
|
#!/usr/bin/env ruby
|
2005-11-02 22:18:50 +08:00
|
|
|
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
require 'rex/file'
|
|
|
|
|
2005-11-15 02:48:21 +08:00
|
|
|
class Rex::FileUtils::UnitTest < ::Test::Unit::TestCase
|
2005-11-02 22:18:50 +08:00
|
|
|
Klass = Rex::FileUtils
|
|
|
|
|
|
|
|
def test_find_full_path
|
|
|
|
assert_not_nil(Klass.find_full_path("ls"))
|
|
|
|
assert_nil(Klass.find_full_path("cookie monster cake"))
|
|
|
|
end
|
|
|
|
|
2008-10-20 05:03:39 +08:00
|
|
|
end
|