mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
* Enabled frozen string literals * Update rubocop config * Prefer string interpolation in simple cases Co-Authored-By: Dylan Thacker-Smith <dylan.smith@shopify.com>
15 lines
359 B
Ruby
15 lines
359 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|