test/integration/zafu_compiler/roles.yml in zena-1.0.0.beta2 vs test/integration/zafu_compiler/roles.yml in zena-1.0.0.beta3
- old
+ new
@@ -23,6 +23,34 @@
tem: "<% if @node.has_role?(493147733) -%>Has an original<% end -%>"
res: 'Has an original'
show_bad_role:
src: "<r:Foo>abc</r:Foo>"
- tem: "/Invalid role or class 'Foo'/"
+ tem: "/Invalid role or class 'Foo'/"
+
+form_with_all_roles:
+ context:
+ node: tree_jpg
+ src: |
+ <r:possible_roles>
+ <fieldset do='each'>
+ <legend do='name'/>
+ <ul do='columns'>
+ <li do='each'><label do='name'/> <r:input/></li>
+ </ul>
+ </fieldset>
+ </r:possible_roles>
+ res: "/label.weight.*node\[weight\].*origin.*value='Big Bang'.*assigned/"
+
+show_all_properties:
+ context:
+ node: tree_jpg
+ src: |
+ <r:roles>
+ <fieldset do='each'>
+ <legend do='name'/>
+ <ul do='columns'>
+ <li do='each' do='if' test='@node.send(name)'><label do='name'/> <r:eval>@node.send(name)</r:eval></li>
+ </ul>
+ </fieldset>
+ </r:roles>
+ res: "/<label>origin</label> Big Bang</li>/"
\ No newline at end of file