Changeset 211 for ruby/branches/0.5
- Timestamp:
- Aug 17, 2009, 10:18:49 PM (15 years ago)
- Location:
- ruby/branches/0.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/data_structures/item_structure.rb
r210 r211 161 161 end 162 162 end 163 164 def element_at_cell_ij(i,j) 165 return @rows[i-1].items[j-1] 166 end 163 167 end 164 168 end # of ItemStructure -
ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb
r210 r211 114 114 @item_table.row_with_key(Set['two','five'])}.should raise_error(ArgumentError) 115 115 end 116 117 it 'should be element at cell ij' do 118 @item_table.element_at_cell_ij(2,2).name.value.should == 'five' 119 end 120 121 it 'should not be element at cell with wrong ij' do 122 @item_table.element_at_cell_ij(2,3).name.value.should_not == 'five' 123 end 116 124 end
Note:
See TracChangeset
for help on using the changeset viewer.