test/jini_test.rb in jini-0.0.6 vs test/jini_test.rb in jini-0.0.7

- old
+ new

@@ -35,64 +35,64 @@ CHILD = 'child' def test_add_path_and_at_success assert_equal( '/parent/child[1]', Jini.new - .add_path(PARENT) - .add_path(CHILD) + .add_node(PARENT) + .add_node(CHILD) .at(1) .to_s ) end def test_remove_path assert_equal( 'parent/toy', Jini.new(PARENT) - .add_path(CHILD) - .add_path('toy') - .remove_path(CHILD) + .add_node(CHILD) + .add_node('toy') + .remove_node(CHILD) .to_s ) end def test_add_attr_success assert_equal( '/node[@key="value"]', Jini.new - .add_path('node') + .add_node('node') .add_attr('key', 'value') .to_s ) end def test_all_success assert_equal( '/parent/child/*', Jini.new - .add_path(PARENT) - .add_path(CHILD) + .add_node(PARENT) + .add_node(CHILD) .all .to_s ) end def test_all_fail assert_raises do Jini.new - .add_path(PARENT) + .add_node(PARENT) .add_attr('key', 'value') .all end end def test_remove_attr_success assert_equal( '/home/batya', Jini.new - .add_path('home') - .add_path('batya') + .add_node('home') + .add_node('batya') .add_attr('drunk', 'very') .remove_attr('drunk') .to_s ) end @@ -100,14 +100,14 @@ def test_remove_attr_many assert_equal( '/parent/child/toy', Jini .new - .add_path(PARENT) - .add_path(CHILD) + .add_node(PARENT) + .add_node(CHILD) .add_attr('age', 'teen') - .add_path('toy') + .add_node('toy') .add_attr('age', 'old') .remove_attr('age') .to_s ) end @@ -121,51 +121,51 @@ def test_selection_success assert_equal( 'parent::child', Jini.new(PARENT) - .add_path(CHILD) + .add_node(CHILD) .selection .to_s ) end def test_selection_fail assert_raises do Jini.new - .add_path(PARENT) - .add_path(CHILD) + .add_node(PARENT) + .add_node(CHILD) .add_attr('k', 'v') .selection .to_s end end def test_or assert_equal( - 'parent/child[animal|toy]', + 'parent/child[animal | toy]', Jini.new(PARENT) - .add_path(CHILD) + .add_node(CHILD) .or('animal', 'toy') .to_s ) end def test_lt assert_equal( 'parent/child[toys < 10]', Jini.new(PARENT) - .add_path(CHILD) + .add_node(CHILD) .lt('toys', 10) .to_s ) end def test_gt assert_equal( 'parent/child[toys > 10]', Jini.new(PARENT) - .add_path(CHILD) + .add_node(CHILD) .gt('toys', 10) .to_s ) end end