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

Version Path
liquid-4.0.4 test/unit/tags/if_tag_unit_test.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/liquid-4.0.3/test/unit/tags/if_tag_unit_test.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/liquid-4.0.3/test/unit/tags/if_tag_unit_test.rb
liquid-4.0.3 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.2 test/unit/tags/if_tag_unit_test.rb
liquid-4-0-2-4.0.2 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.1 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.0 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.0.rc3 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.0.rc2 test/unit/tags/if_tag_unit_test.rb
liquid-4.0.0.rc1 test/unit/tags/if_tag_unit_test.rb
locomotivecms-liquid-4.0.0 test/unit/tags/if_tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha2 test/unit/tags/if_tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha1 test/unit/tags/if_tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha test/unit/tags/if_tag_unit_test.rb