From 0ae42bbc32fdcbc7b139a4b89eca8b1be7c7e3d7 Mon Sep 17 00:00:00 2001 From: Andrei Gladkyi Date: Mon, 16 Dec 2013 17:48:43 +0200 Subject: [PATCH] Added separate test for custom patterns specifying + updated History.md --- History.md | 1 + test/liquid/file_system_test.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index 306e43c..4b114c1 100644 --- a/History.md +++ b/History.md @@ -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] diff --git a/test/liquid/file_system_test.rb b/test/liquid/file_system_test.rb index b9999e0..4b2a2f1 100644 --- a/test/liquid/file_system_test.rb +++ b/test/liquid/file_system_test.rb @@ -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")