Sha256: 892d3f5af2cd1120ff8d6a6a3c7c103deb84a25e59e14c7e513f9b08537a65c3

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 Bytes

Contents

require 'test_helper'

class CaseTagUnitTest < Minitest::Test
  include Liquid

  def test_case_nodelist
    template = Liquid::Template.parse('{% case var %}{% when true %}WHEN{% else %}ELSE{% endcase %}')
    assert_equal ['WHEN', 'ELSE'], template.root.nodelist[0].nodelist
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
liquid-3.0.6 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.5 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.4 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.3 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.2 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.1 test/unit/tags/case_tag_unit_test.rb
liquid-3.0.0 test/unit/tags/case_tag_unit_test.rb