Sha256: 89c7aa69404375994ecb9585675f94863ac4961844433d9dfa569ff384348a40
Contents?: true
Size: 299 Bytes
Versions: 5
Compression:
Stored size: 299 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems