Add Liquid::Tag#tag_name

This commit is contained in:
Gaurav Chande
2015-07-02 20:18:09 +00:00
parent 8a8de46c6a
commit 3c23cfc167
2 changed files with 6 additions and 1 deletions

View File

@@ -13,4 +13,9 @@ class TagUnitTest < Minitest::Test
tag = Tag.parse("long_tag", "param1, param2, param3", [], {})
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", [], [], {})
assert_equal 'some_tag', tag.tag_name
end
end