source: ruby/trunk/spec/lib/open_ehr/am/archetype/constraint_model/c_primitive_object_spec.rb@ 375

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

refs #74

File size: 673 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::AM::Archetype::ConstraintModel
3include OpenEHR::AssumedLibraryTypes
4
5describe CPrimitiveObject do
6 before(:each) do
7 interval = Interval.new(:lower => 0, :upper => 1)
8 @c_primitive_object = CPrimitiveObject.new(:path => 'event/test',
9 :rm_type_name => 'DV_TEXT',
10 :node_id => 'ac0001',
11 :occurrences => interval)
12 end
13
14 it 'should be an instance of CPrimitiveObject' do
15 @c_primitive_object.should be_an_instance_of CPrimitiveObject
16 end
17end
Note: See TracBrowser for help on using the repository browser.