Sha256: 3e5ea92c144769b4a4f3d9323d57e967f44bf25274af11bebfaf4ad0b5af9aa6

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

require 'test_helper'

class TestJekyllDiagrams < Minitest::Test
  def setup
    @config = Jekyll.configuration({
      source: source_dir,
      destination: dest_dir,
      url: 'http://example.org'
    })
  
    @site = Jekyll::Site.new(@config)
    @site.process
    @graphviz_contents = File.read(dest_dir('2019/08/25/graphviz.html'))
    @blockdiag_contents = File.read(dest_dir('2019/08/25/blockdiag.html'))
  end


  def test_render_graphviz
    assert_match %r!<div class="diagrams graphviz">!, @graphviz_contents
  end

  def test_render_blockdiag
    assert_match %r!<div class="diagrams \w+">!, @blockdiag_contents
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-diagrams-0.5.1 test/jekyll-diagrams_test.rb