mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
f124597a56
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
16 lines
334 B
Ruby
16 lines
334 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
require 'test/unit'
|
|
require 'rex/file'
|
|
|
|
class Rex::FileUtils::UnitTest < ::Test::Unit::TestCase
|
|
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 |