-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix handling of parameter names passed to merge-params; the keys are …
…symbols, not strings
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: merge-params | ||
|
||
Scenario: merge-params with a param name | ||
Given a file named "doctest_taglib.dryml" with: | ||
""" | ||
<def tag="myp"> | ||
<p param="foo">This is foo</p> | ||
<p param="bar">This is bar</p> | ||
</def> | ||
""" | ||
And a file named "doctest_extend.dryml" with: | ||
""" | ||
<extend tag="myp"> | ||
<old-myp merge-params="bar" /> | ||
</extend> | ||
""" | ||
And a file named "doctest.dryml" with: | ||
""" | ||
<myp> | ||
<foo:> | ||
New stuff | ||
</foo:> | ||
<bar:> | ||
Brand-new bar | ||
</bar:> | ||
</myp> | ||
""" | ||
When I include the taglib "doctest_taglib" | ||
And I include the taglib "doctest_extend" | ||
When I render "doctest.dryml" | ||
Then the output DOM should be: | ||
""" | ||
<p class="foo">This is foo</p> | ||
<p class="bar">Brand-new bar</p> | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters