- Timestamp:
- Sep 25, 2009, 6:56:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb
r296 r300 7 7 before(:each) do 8 8 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') 11 12 @locatable = Locatable.new(:archetype_node_id => 'at001', 12 13 :name => name, 13 :link => link, 14 :id => id) 14 :links => link, 15 :uid => uid, 16 :archetype_details => archetype_details) 15 17 end 16 18 17 19 it 'should be_an_instance_of Locatable' do 18 20 @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' 19 41 end 20 42 … … 25 47 end 26 48 27 it 'should'28 49 end
Note:
See TracChangeset
for help on using the changeset viewer.