Sha256: c920467d8fc48489d7cb42709e756743e1ce5a86e51c577fb3ce851afc6f405e
Contents?: true
Size: 624 Bytes
Versions: 11
Compression:
Stored size: 624 Bytes
Contents
require 'test_helper' class TagUnitTest < Minitest::Test include Liquid def test_tag tag = Tag.parse('tag', "", Tokenizer.new(""), ParseContext.new) 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", Tokenizer.new(""), ParseContext.new) assert_equal("long_tag param1, param2, param3", tag.raw) end def test_tag_name_should_return_name_of_the_tag tag = Tag.parse("some_tag", "", Tokenizer.new(""), ParseContext.new) assert_equal 'some_tag', tag.tag_name end end
Version data entries
11 entries across 11 versions & 3 rubygems