test/jini_test.rb in jini-0.0.9 vs test/jini_test.rb in jini-0.1.0
- old
+ new
@@ -259,6 +259,17 @@
.add_node(CHILD)
.replace_node(CHILD, 'wife')
.to_s
)
end
+
+ def test_replace_attr
+ assert_equal(
+ 'parent/child[@toy="car"]',
+ Jini.new(PARENT)
+ .add_node(CHILD)
+ .add_attr('toy', 'plane')
+ .new_attr_value('toy', 'car')
+ .to_s
+ )
+ end
end