Sha256: f5df39920d562fd870e549fe9398a965d8dab190463a5f3c3f494d8dda01538d
Contents?: true
Size: 267 Bytes
Versions: 15
Compression:
Stored size: 267 Bytes
Contents
require 'test_helper' class IfTagUnitTest < Minitest::Test def test_if_nodelist template = Liquid::Template.parse('{% if true %}IF{% else %}ELSE{% endif %}') assert_equal ['IF', 'ELSE'], template.root.nodelist[0].nodelist.map(&:nodelist).flatten end end
Version data entries
15 entries across 15 versions & 4 rubygems