Changeset 339 for ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb
- Timestamp:
- Nov 10, 2009, 9:46:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb
r220 r339 45 45 end 46 46 47 it 'column_count should be 0 when @rows == nil' do 48 @item_table.rows = nil 49 @item_table.column_count.should be_equal 0 50 end 47 51 48 52 it 's row_names should be cluster cluster' do … … 96 100 end 97 101 102 it 'should be false it has_column with name ten' do 103 @item_table.has_column_with_name?('ten').should be_false 104 end 105 98 106 it 'second row should be named_row four' do 99 107 @item_table.named_row('four').items[1].name.value = 'five' … … 126 134 127 135 it 'should be two element at named cell by row column' do 128 @item_table.element_at_named_cell('cluster', 'two').name.value == 'two' 136 @item_table.element_at_named_cell('cluster', 'three').name.value == 'three' 137 end 138 139 it 'should return nil when rows are nil' do 140 @item_table.rows = nil 141 @item_table.row_count.should be_equal 0 129 142 end 130 143
Note:
See TracChangeset
for help on using the changeset viewer.