Ignore:
Timestamp:
Sep 25, 2009, 6:56:37 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

archetyped package is difficult

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb

    r296 r300  
    77  before(:each) do
    88    name = DvText.new(:value => 'problem/SOAP')
    9     link = stub(Set, :size => 10)
    10     id = UIDBasedID.new(:value => 'ehr::localhost/3030')
     9    link = stub(Set, :size => 10, :empty? => false)
     10    uid = UIDBasedID.new(:value => 'ehr::localhost/3030')
     11    archetype_details = stub(Archetyped, :rm_version =>  '1.2.4')
    1112    @locatable = Locatable.new(:archetype_node_id => 'at001',
    1213                               :name => name,
    13                                :link => link,
    14                                :id => id)
     14                               :links => link,
     15                               :uid => uid,
     16                               :archetype_details => archetype_details)
    1517  end
    1618
    1719  it 'should be_an_instance_of Locatable' do
    1820    @locatable.should be_an_instance_of Locatable
     21  end
     22
     23  it 'archetype_node_id should be at001' do
     24    @locatable.archetype_node_id.should == 'at001'
     25  end
     26
     27  it 'link size should be 10' do
     28    @locatable.links.size.should == 10
     29  end
     30
     31  it 'name.value should problem/soap' do
     32    @locatable.name.value.should == 'problem/SOAP'
     33  end
     34
     35  it 'uid.value should be ehr::localhost/3030' do
     36    @locatable.uid.value.should == 'ehr::localhost/3030'
     37  end
     38
     39  it 'archetype_details.rm_version should be 1.2.4' do
     40    @locatable.archetype_details.rm_version.should == '1.2.4'
    1941  end
    2042
     
    2547  end
    2648
    27   it 'should'
    2849end
Note: See TracChangeset for help on using the changeset viewer.