Sha256: 3008660b167b9dcba4ed5f1c8867b955080a7f73b40e6816f456a42690f98408

Contents?: true

Size: 394 Bytes

Versions: 11

Compression:

Stored size: 394 Bytes

Contents

require 'test_helper'

class TagUnitTest < Minitest::Test
  include Liquid

  def test_tag
    tag = Tag.parse('tag', [], [], {})
    assert_equal 'liquid::tag', tag.name
    assert_equal '', tag.render(Context.new)
  end

  def test_return_raw_text_of_tag
    tag = Tag.parse("long_tag", "param1, param2, param3", [], {})
    assert_equal("long_tag param1, param2, param3", tag.raw)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
locomotivecms-liquid-4.0.0 test/unit/tag_unit_test.rb
liquid-3.0.6 test/unit/tag_unit_test.rb
liquid-3.0.5 test/unit/tag_unit_test.rb
liquid-3.0.4 test/unit/tag_unit_test.rb
liquid-3.0.3 test/unit/tag_unit_test.rb
liquid-3.0.2 test/unit/tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha2 test/unit/tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha1 test/unit/tag_unit_test.rb
locomotivecms-liquid-4.0.0.alpha test/unit/tag_unit_test.rb
liquid-3.0.1 test/unit/tag_unit_test.rb
liquid-3.0.0 test/unit/tag_unit_test.rb