Sha256: 355a7acf3899cbb3dc87d79acdd492804c29b037f51f03d02ca7f4ba8771c6a0

Contents?: true

Size: 603 Bytes

Versions: 36

Compression:

Stored size: 603 Bytes

Contents

require 'test_helper'
require 'tilt'

begin
  require 'tilt/commonmarker'

  class CommonMarkerTemplateTest < Minitest::Test
    test "preparing and evaluating templates on #render" do
      template = Tilt::CommonMarkerTemplate.new { |t| "# Hello World!" }
      assert_equal "<h1>Hello World!</h1>\n", template.render
    end

    test "can be rendered more than once" do
      template = Tilt::CommonMarkerTemplate.new { |t| "# Hello World!" }
      3.times { assert_equal "<h1>Hello World!</h1>\n", template.render }
    end
  end
rescue LoadError
  warn "Tilt::CommonMarkerTemplate (disabled)"
end

Version data entries

36 entries across 35 versions & 11 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb
tilt-2.0.8 test/tilt_commonmarkertemplate_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/test/tilt_commonmarkertemplate_test.rb