Sha256: 04c380705399a7a5ddbbf91da63700d6a0e1f963f27ac57ee5bc31e3b2e3a0bf

Contents?: true

Size: 399 Bytes

Versions: 12

Compression:

Stored size: 399 Bytes

Contents

require 'test_helper'

class RawTagTest < Test::Unit::TestCase
  include Liquid

  def test_tag_in_raw
    assert_template_result '{% comment %} test {% endcomment %}',
                           '{% raw %}{% comment %} test {% endcomment %}{% endraw %}'
  end

  def test_output_in_raw
    assert_template_result '{{ test }}',
                           '{% raw %}{{ test }}{% endraw %}'
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
liquid-2.5.5 test/liquid/tags/raw_tag_test.rb
liquid-2.5.4 test/liquid/tags/raw_tag_test.rb
liquid-2.5.3 test/liquid/tags/raw_tag_test.rb
liquid-2.5.1 test/liquid/tags/raw_tag_test.rb
wordify_liquid-2.5.1 test/liquid/tags/raw_tag_test.rb
liquid-2.5.0 test/liquid/tags/raw_tag_test.rb
liquid-2.4.1 test/liquid/tags/raw_tag_test.rb
liquid-2.4.0 test/liquid/tags/raw_tag_test.rb
spinto-liquid-2.3.0.3 test/liquid/tags/raw_tag_test.rb
spinto-liquid-2.3.0.2 test/liquid/tags/raw_tag_test.rb
spinto-liquid-2.3.0.1 test/liquid/tags/raw_tag_test.rb
liquid-2.3.0 test/liquid/tags/raw_tag_test.rb