test/scout/path/test_find.rb in scout-gear-1.2.0 vs test/scout/path/test_find.rb in scout-gear-2.0.0

- old
+ new

@@ -8,11 +8,11 @@ path = Path.setup("share/data/some_file", 'scout') assert_equal "share", path._toplevel assert_equal "data/some_file", path._subpath path = Path.setup("data", 'scout') - assert_equal nil, path._toplevel + assert_equal "", path._toplevel assert_equal "data", path._subpath end def test_find_local map = File.join('/usr/local', "{TOPLEVEL}", "{PKGDIR}", "{SUBPATH}") @@ -59,9 +59,17 @@ path.libdir = tmpdir Misc.in_dir tmpdir.subdir do assert_equal 2, path.find_all.length end end + end + + def test_located? + + p = Path.setup("/tmp/foo/bar") + assert p.located? + assert_equal p, p.find + end end