test/test_PropertySet.rb in taskjuggler-0.0.11 vs test/test_PropertySet.rb in taskjuggler-0.1.0

- old
+ new

@@ -31,11 +31,11 @@ p = TaskJuggler::Project.new('p', 'Project', '1.0', MessageHandler.new(true)) p['start'] = TjTime.new('2008-07-29') p['end'] = TjTime.new('2008-08-31') # This set of Arrays describes the tree structure that we want to test. - # Each Array element is an tuple of WBS index and parent node. + # Each Array element is an tuple of breakdown structure idex and parent node. nodes = [ [ '1', nil ], [ '1.1', '1' ], [ '1.1.1', '1.1' ], [ '1.1.2', '1.1' ], [ '1.2', '1' ], @@ -44,27 +44,27 @@ [ '2.1', '2' ] ] # Now we create the nodes according to the above list. i = 0 nodes.each do |id, parent| - # For the node id we use the expected wbs result. + # For the node id we use the expected bsi result. Task.new(p, id, "Node #{id}", parent ? p.task(parent) : nil) Resource.new(p, id, "Node #{id}", parent ? p.resource(parent) : nil) i += 1 end p.tasks.index p.resources.index p.tasks.each do |t| - assert_equal(t.fullId, t.get('wbs')) + assert_equal(t.fullId, t.get('bsi')) end p.tasks.removeProperty('1.1') p.tasks.index - assert_equal('1.1', p.task('1.2').get('wbs')) + assert_equal('1.1', p.task('1.2').get('bsi')) p.resources.each do |r| - assert_equal(r.fullId, r.get('wbs')) + assert_equal(r.fullId, r.get('bsi')) end end end