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

View File

@@ -3,6 +3,7 @@
## 3.0.0 / not yet released / branch "master"
* ...
* Allow specifying custom patterns for template filenames, see #284 [Andrei Gladkyi, agladkyi]
* Allow drops to optimize loading a slice of elements, see #282 [Tom Burns, boourns]
* Support for passing variables to snippets in subdirs, see #271 [Joost Hietbrink, joost]
* Add a class cache to avoid runtime extend calls, see #249 [James Tucker, raggi]

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")