Added separate test for custom patterns specifying

+ updated History.md
This commit is contained in:
Andrei Gladkyi
2013-12-16 17:48:43 +02:00
parent 0edb252489
commit 0ae42bbc32
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -25,8 +25,9 @@ class FileSystemTest < Test::Unit::TestCase
assert_raise(FileSystemError) do
file_system.full_path("/etc/passwd")
end
end
# custom pattern for template filenames
def test_custom_template_filename_patterns
file_system = Liquid::LocalFileSystem.new("/some/path", "%s.html")
assert_equal "/some/path/mypartial.html" , file_system.full_path("mypartial")
assert_equal "/some/path/dir/mypartial.html", file_system.full_path("dir/mypartial")