Sha256: 5e305e22c345538f1ae18573d7504207067f10152a661ca82cf1e0f6d953b0b1
Contents?: true
Size: 499 Bytes
Versions: 5
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class DocumentTest < Minitest::Test include Liquid def test_unexpected_outer_tag exc = assert_raises(SyntaxError) do Template.parse("{% else %}") end assert_equal(exc.message, "Liquid syntax error: Unexpected outer 'else' tag") end def test_unknown_tag exc = assert_raises(SyntaxError) do Template.parse("{% foo %}") end assert_equal(exc.message, "Liquid syntax error: Unknown tag 'foo'") end end
Version data entries
5 entries across 5 versions & 1 rubygems