source: ruby/branches/0.5/spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb@ 296

Last change on this file since 296 was 296, checked in by KOBAYASHI, Shinji, 15 years ago

merge error

File size: 853 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::Common::Archetyped
3include OpenEHR::RM::DataTypes::Text
4include OpenEHR::RM::Support::Identification
5
6describe Locatable do
7 before(:each) do
8 name = DvText.new(:value => 'problem/SOAP')
9 link = stub(Set, :size => 10)
10 id = UIDBasedID.new(:value => 'ehr::localhost/3030')
11 @locatable = Locatable.new(:archetype_node_id => 'at001',
12 :name => name,
13 :link => link,
14 :id => id)
15 end
16
17 it 'should be_an_instance_of Locatable' do
18 @locatable.should be_an_instance_of Locatable
19 end
20
21 it 'should raise ArgumentError with nil archetype_node_id' do
22 lambda {
23 @locatable.archetype_node_id = nil
24 }.should raise_error ArgumentError
25 end
26
27 it 'should'
28end
Note: See TracBrowser for help on using the repository browser.