Ignore:
Timestamp:
Nov 10, 2009, 9:46:35 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

data_structure will nearly completed

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  
    4545  end
    4646
     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
    4751
    4852  it 's row_names should be cluster cluster' do
     
    96100  end
    97101
     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
    98106  it 'second row should be named_row four' do
    99107    @item_table.named_row('four').items[1].name.value = 'five'
     
    126134
    127135  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
    129142  end
    130143
Note: See TracChangeset for help on using the changeset viewer.