Rev | Line | |
---|
[381] | 1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
| 2 | include OpenEHR::AM::Archetype::ConstraintModel
|
---|
| 3 | include OpenEHR::AssumedLibraryTypes
|
---|
| 4 |
|
---|
| 5 | describe CDomainType do
|
---|
| 6 | before(:each) do
|
---|
| 7 | occurrences = Interval.new(:lower => 0, :upper => 1)
|
---|
| 8 | parent = stub(CAttribute, :rm_attribute_name => 'DV_DATE')
|
---|
| 9 | @c_domain_type = CDomainType.new(:path => '/event/[at0001]/',
|
---|
| 10 | :rm_type_name => 'DV_TIME',
|
---|
| 11 | :node_id => 'ac0001',
|
---|
| 12 | :occurrences => occurrences)
|
---|
| 13 | end
|
---|
| 14 |
|
---|
| 15 | it 'should be an instance of CDomainType' do
|
---|
| 16 | @c_domain_type.should be_an_instance_of CDomainType
|
---|
| 17 | end
|
---|
| 18 |
|
---|
| 19 | it 'standard_equivalent should raise NotImplementedError' do
|
---|
| 20 | lambda {
|
---|
| 21 | @c_domain_type.standard_equivalent
|
---|
| 22 | }.should raise_error NotImplementedError
|
---|
| 23 | end
|
---|
| 24 | end
|
---|
| 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.