Changeset 208 for ruby/branches/0.5/spec/lib/open_ehr/rm
- Timestamp:
- Aug 17, 2009, 1:03:59 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_table_spec.rb
r207 r208 71 71 lambda {@item_table.ith_row(0) }.should raise_error(ArgumentError) 72 72 end 73 74 it 'should be true because it has_row_with_name cluster' do 75 @item_table.has_row_with_name?('one').should be_true 76 end 77 78 it 'should be true because it does not have_row_with_name key' do 79 @item_table.has_row_with_name?('two').should_not be_true 80 end 81 82 it 'should raise argument error key is nil' do 83 lambda {@item_table.has_row_with_name?(nil) 84 }.should raise_error(ArgumentError) 85 end 86 87 it 'should raise argument error key is empty' do 88 lambda {@item_table.has_row_with_name?('') 89 }.should raise_error(ArgumentError) 90 end 91 92 it 'should be true because it has_column_with_name one' do 93 @item_table.has_column_with_name?('one').should be_true 94 end 95 96 it 'second row should be named_row four' do 97 @item_table.named_row('four').items[1].name.value = 'five' 98 end 73 99 end
Note:
See TracChangeset
for help on using the changeset viewer.