blob: 0824530163d8da5e6b21536f1c96dd5b7e8b6bfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|