test/jini_test.rb in jini-0.0.2 vs test/jini_test.rb in jini-0.0.3
- old
+ new
@@ -81,6 +81,21 @@
.add_attr('drunk', 'very')
.remove_attr('drunk')
.to_s
)
end
+
+ def test_remove_attr_many
+ assert_equal(
+ '/parent/child/toy',
+ Jini
+ .new
+ .add_path('parent')
+ .add_path('child')
+ .add_attr('age', 'teen')
+ .add_path('toy')
+ .add_attr('age', 'old')
+ .remove_attr('age')
+ .to_s
+ )
+ end
end