Sha256: 6b3f1ff4721550f69a8fe6915d093588294390a6248d91ca55a48586f8b14543
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class BlockdiagTest < Minitest::Test def setup @block = Jekyll::Diagrams::BlockdiagBlock.parse( 'blockdiag', '', Liquid::Tokenizer.new('{% endblockdiag %}'), Liquid::ParseContext.new ) end def test_build_command_with_default_config config = {} assert_equal 'blockdiag -T svg --nodoctype', @block.build_command(config) config = { 'antialias' => true } assert_match '--antialias', @block.build_command(config) config = { 'antialias' => false } refute_match '--antialias', @block.build_command(config) config = { 'size' => 3 } assert_match '--size=3', @block.build_command(config) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.9.3 | test/blockdiag_test.rb |