Sha256: ed297c82335dcb7c246734f9f4a63da1fd1761d073fc3ff7a3dcf9e7746edfdf

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 Bytes

Contents

require 'helper'
require 'slim/include'

class TestSlimInclude < TestSlim
  def test_include
    source = %q{
a: include slimfile
b: include textfile
c: include slimfile.slim
d: include subdir/test
}
    assert_html '<a>slim1recslim2</a><b>1+2=3</b><c>slim1recslim2</c><d>subdir</d>', source, include_dirs: [File.expand_path('files', File.dirname(__FILE__))]
  end

  def test_include_with_newline
    source = %q{
a: include slimfile

.content
}
    assert_html '<a>slim1recslim2</a><div class="content"></div>', source, include_dirs: [File.expand_path('files', File.dirname(__FILE__))]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slim-3.0.3 test/include/test_include.rb
slim-3.0.2 test/include/test_include.rb
slim-3.0.1 test/include/test_include.rb
slim-3.0.0 test/include/test_include.rb
slim-3.0.0.beta.3 test/include/test_include.rb
slim-3.0.0.beta.2 test/include/test_include.rb