mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
18 lines
374 B
Ruby
18 lines
374 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'test_helper'
|
|
|
|
class InlineCommentTest < Minitest::Test
|
|
include Liquid
|
|
|
|
def test_basic_usage
|
|
template_source = <<-END_TEMPLATE
|
|
foo{% # this is a comment %}bar
|
|
END_TEMPLATE
|
|
template = Template.parse(template_source)
|
|
rendered = template.render!
|
|
assert_equal("foobar", rendered.strip)
|
|
end
|
|
end
|
|
|