Sha256: f237543c48341caf38c0f1ab0b3804c4e1eb46f656bc3497239d6b0a5d5f8395

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
liquid-4.0.4 test/integration/block_test.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/liquid-4.0.3/test/integration/block_test.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/liquid-4.0.3/test/integration/block_test.rb
liquid-4.0.3 test/integration/block_test.rb
liquid-4.0.2 test/integration/block_test.rb
liquid-4-0-2-4.0.2 test/integration/block_test.rb
liquid-4.0.1 test/integration/block_test.rb