source: ruby/trunk/spec/lib/open_ehr/am/archetype/constraint_model/c_domain_type_spec.rb@ 381

Last change on this file since 381 was 381, checked in by KOBAYASHI, Shinji, 14 years ago

refs #74

File size: 901 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::AM::Archetype::ConstraintModel
3include OpenEHR::AssumedLibraryTypes
4
5describe 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
24end
25
Note: See TracBrowser for help on using the repository browser.