Sha256: b84b86b4e5805dbefc9234e48499989e180dbf4201025ec38c983b681cb9662c
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
Feature: Graphviz Configuration Scenario: Global Configuration Given I have a file named '_config.yml' with: """ jekyll-diagrams: graphviz: graph_attributes: bgcolor=red edge_attributes: - color=green node_attributes: color: blue """ And I have a file named 'graphviz.md' with: """ --- --- {% graphviz %} digraph { A -> B; } {% endgraphviz %} """ When I run jekyll build Then the file '_site/graphviz.html' should exist # Graph And I should see '<polygon fill="#ff0000"' in '_site/graphviz.html' # Edge And I should see '<path .*? stroke="#00ff00"' in '_site/graphviz.html' # Node And I should see '<ellipse .*? stroke="#0000ff"' in '_site/graphviz.html' Scenario: Page Configuration Will Overwite Site Configuration Given I have a file named '_config.yml' with: """ jekyll-diagrams: graphviz: edge_attributes: color: green """ And I have a file named 'graphviz.md' with: """ --- jekyll-diagrams: graphviz: edge_attributes: color: red --- {% graphviz %} digraph { A -> B; } {% endgraphviz %} """ When I run jekyll build Then the file '_site/graphviz.html' should exist And I should see '<path .*? stroke="#ff0000"' in '_site/graphviz.html' And I should not see '<path .*? stroke="#00ff00"' in '_site/graphviz.html'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.11.0.pre | features/graphviz_config.feature |
jekyll-diagrams-0.10.0 | features/graphviz/config.feature |