Ignore:
Timestamp:
Aug 20, 2009, 10:49:33 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

DvText modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb

    r216 r220  
    77def row(args)
    88  return args.collect do |n|
    9     Element.new(:name => DvText.new(n),
     9    Element.new(:name => DvText.new(:value => n),
    1010                :archetype_node_id => 'test')
    1111  end
     
    1313
    1414def cluster_builder(name,rows)
    15   return Cluster.new(:name => DvText.new(name),
     15  return Cluster.new(:name => DvText.new(:value => name),
    1616                     :archetype_node_id => 'test',
    1717                     :items => rows)
     
    2323    row2 = row(%w{four five six})
    2424    rows = [row1, row2].collect{|r| cluster_builder('cluster',r)}
    25     @item_table = ItemTable.new(:name => DvText.new('item table'),
     25    @item_table = ItemTable.new(:name => DvText.new(:value => 'item table'),
    2626                                :archetype_node_id => 'test',
    2727                                :rows => rows)
     
    4747
    4848  it 's row_names should be cluster cluster' do
    49     @item_table.row_names.should == %w{cluster cluster}.collect{|n| DvText.new(n)}
     49    @item_table.row_names.should == %w{cluster cluster}.collect{|n|
     50      DvText.new(:value => n)}
    5051  end
    5152
     
    5657
    5758  it 's column_names should one two three' do
    58     @item_table.column_names.should == %w{one two three}.collect{|s| DvText.new(s)}
     59    @item_table.column_names.should == %w{one two three}.collect{|s|
     60      DvText.new(:value => s)}
    5961  end
    6062
Note: See TracChangeset for help on using the changeset viewer.