Make new tests serializable to liquid-spec

(No anonymous classes)
This commit is contained in:
Charles-P. Clermont
2025-12-18 13:56:02 -05:00
parent 22e979a6fa
commit cbeff64708
3 changed files with 23 additions and 15 deletions
+20
View File
@@ -199,6 +199,26 @@ class ErrorDrop < Liquid::Drop
end
end
class CustomToLiquidDrop < Liquid::Drop
def initialize(value)
@value = value
super()
end
def to_liquid
@value
end
end
class HashWithCustomToS < Hash
def to_s
"kewl"
end
end
class HashWithoutCustomToS < Hash
end
class StubFileSystem
attr_reader :file_read_count