FIX: results of Wiki#search contains files out of page_file_dir

This commit is contained in:
Hiroshi Saito
2010-10-07 23:01:27 +09:00
parent fcdffc39ff
commit f8e7fcf2d2
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -314,6 +314,12 @@ context "page_file_dir option" do
assert !@wiki.page("bar")
end
test "search results should be restricted in page filer dir" do
results = @wiki.search("Hello")
assert_equal 1, results.size
assert_equal "foo", results[0][:name]
end
teardown do
FileUtils.rm_r(@path)
end