test/jini_test.rb in jini-0.1.2 vs test/jini_test.rb in jini-0.1.3
- old
+ new
@@ -26,11 +26,11 @@
require 'minitest/autorun'
require_relative 'test_helper'
# Jini test.
# Author:: Ivan Ivanchuk (clicker.heroes.acg@gmail.com)
-# Copyright:: Copyright (c) 2022-2022 Ivan Ivanchuck
+# Copyright:: Copyright (c) 2022 Ivan Ivanchuck
# License:: MIT
class JiniTest < Minitest::Test
PARENT = 'parent'
CHILD = 'child'
def test_add_path_and_at_success
@@ -267,9 +267,20 @@
'parent/child[@toy="car"]',
Jini.new(PARENT)
.add_node(CHILD)
.add_attr('toy', 'plane')
.new_attr_value('toy', 'car')
+ .to_s
+ )
+ end
+
+ def test_remove_property
+ assert_equal(
+ 'parent/child/',
+ Jini.new(PARENT)
+ .add_node(CHILD)
+ .add_property('p')
+ .remove_property('p')
.to_s
)
end
end