2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-11-02 14:18:50 +00:00
|
|
|
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
require 'rex/file'
|
|
|
|
|
2005-11-14 18:48:21 +00:00
|
|
|
class Rex::FileUtils::UnitTest < ::Test::Unit::TestCase
|
2005-11-02 14:18:50 +00: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
|
|
|
|
|
|
|
|
end
|