Introduce template factory

This commit is contained in:
Martin Morissette
2019-12-17 21:45:08 -05:00
parent 6c6382ed69
commit d8f31046a9
6 changed files with 74 additions and 1 deletions
+13
View File
@@ -136,3 +136,16 @@ class StubFileSystem
@values.fetch(template_path)
end
end
class StubTemplateFactory
attr_reader :count
def initialize
@count = 0
end
def for(_template_name)
@count += 1
Liquid::Template.new
end
end