rf-web/vendor/bundle/gems/liquid-4.0.3/test/integration/block_test.rb
2019-10-21 10:18:17 +02:00

13 lines
328 B
Ruby

require 'test_helper'
class BlockTest < Minitest::Test
include Liquid
def test_unexpected_end_tag
exc = assert_raises(SyntaxError) do
Template.parse("{% if true %}{% endunless %}")
end
assert_equal exc.message, "Liquid syntax error: 'endunless' is not a valid delimiter for if tags. use endif"
end
end