Sha256: 5e32f0bc8b2cc94360192d729799e1bbc838143473c6c53572aa01bdc5b6ab3d

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class BreakTagTest < Minitest::Test
  include Liquid

  # tests that no weird errors are raised if break is called outside of a
  # block
  def test_break_with_no_block
    assigns  = { 'i' => 1 }
    markup   = '{% break %}'
    expected = ''

    assert_template_result(expected, markup, assigns)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
liquid-5.3.0 test/integration/tags/break_tag_test.rb
liquid-5.2.0 test/integration/tags/break_tag_test.rb
liquid-5.1.0 test/integration/tags/break_tag_test.rb
liquid-5.0.1 test/integration/tags/break_tag_test.rb
liquid-5.0.0 test/integration/tags/break_tag_test.rb