Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
2 | include OpenEHR::RM::Common::Archetyped
|
---|
3 | include OpenEHR::RM::DataTypes::Text
|
---|
4 | include OpenEHR::RM::Support::Identification
|
---|
5 |
|
---|
6 | describe 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'
|
---|
28 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.