Changeset 220 for ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_list_spec.rb
- Timestamp:
- Aug 20, 2009, 10:49:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_list_spec.rb
r216 r220 7 7 before(:each) do 8 8 items = %w{one two three}.collect do |n| 9 Element.new(:name => DvText.new( n),9 Element.new(:name => DvText.new(:value => n), 10 10 :archetype_node_id => 'test') 11 11 end 12 item_list_name = DvText.new( 'item list')12 item_list_name = DvText.new(:value => 'item list') 13 13 @item_list = ItemList.new(:name => item_list_name, 14 14 :archetype_node_id => 'test', … … 32 32 33 33 it 'retrieve the names of all items' do 34 @item_list.names.should == %w{one two three}.collect{|n| DvText.new(n)} 34 @item_list.names.should == %w{one two three}.collect{|n| 35 DvText.new(:value => n)} 35 36 end 36 37
Note:
See TracChangeset
for help on using the changeset viewer.