mirror of
https://github.com/Shopify/liquid.git
synced 2026-01-27 12:34:24 +00:00
18 lines
419 B
Ruby
18 lines
419 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'test_helper'
|
|
|
|
class DocumentTest < Minitest::Test
|
|
include Liquid
|
|
|
|
def test_unexpected_outer_tag
|
|
source = "{% else %}"
|
|
assert_match_syntax_error("Liquid syntax error (line 1): Unexpected outer 'else' tag", source)
|
|
end
|
|
|
|
def test_unknown_tag
|
|
source = "{% foo %}"
|
|
assert_match_syntax_error("Liquid syntax error (line 1): Unknown tag 'foo'", source)
|
|
end
|
|
end
|