Sha256: c78effade5b34c47c0dbf4c959462a3c4c1c53e99024c503d5e4f45529afa017
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class UtilTest < Minitest::Test include Jekyll::Diagrams::Util def test_normalized_attrs attrs = 'color=red' assert_equal ' -Ecolor=red', normalized_attrs(attrs, prefix: ' -E') attrs = %w[color=red background=green] assert_equal ' -Gcolor=red -Gbackground=green', normalized_attrs(attrs, prefix: ' -G') attrs = { 'color' => 'red', 'background' => 'green' } assert_equal ' -Ncolor=red -Nbackground=green', normalized_attrs(attrs, prefix: ' -N') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.9.2 | test/util_test.rb |