rf-web/vendor/bundle/gems/liquid-4.0.3/test/integration/block_test.rb

13 lines
328 B
Ruby
Raw Normal View History

2019-10-21 08:18:17 +00:00
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