mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Implement the inline comment tag
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class InlineCommentTest < Minitest::Test
|
||||
include Liquid
|
||||
|
||||
def test_tag
|
||||
assert_template_result('', '{% # This text gets ignored %}')
|
||||
end
|
||||
|
||||
def test_inside_liquid_tag
|
||||
source = <<~LIQUID
|
||||
{%- liquid
|
||||
echo "before("
|
||||
# This text gets ignored
|
||||
echo ")after"
|
||||
-%}
|
||||
LIQUID
|
||||
assert_template_result('before()after', source)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user