def test_include_paths
location = File.dirname(@@location)
ptlocation = File.join(Dir.getwd,'lib')
pt = IO.read(File.join(ptlocation,'PageTemplate.rb'))
fs = PageTemplate::FileSource.new(
'include_paths'=>[location,ptlocation]
)
assert_equal([location,ptlocation],fs.paths,
"Explicit set include_paths should include all set elements")
assert_equal(@@text,fs.get('dummy.txt'),
"Just a filename of something in an include path works")
assert_equal(pt,fs.get('PageTemplate.rb'),
"Just a filename of something in an include path works")
end