Ignore:
Timestamp:
Nov 6, 2009, 6:55:08 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

Versioning system is complexed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/spec/lib/open_ehr/rm/common/change_control/original_version_spec.rb

    r332 r333  
    11require File.dirname(__FILE__) + '/../../../../../spec_helper'
     2require File.dirname(__FILE__) + '/shared_examples_spec'
    23include OpenEHR::RM::Common::ChangeControl
    34include OpenEHR::RM::DataTypes::Text
    45
    56describe OriginalVersion do
    6   before(:each) do
    7     uid = ObjectVersionID.new(:value => 'ABC::DEF::1')
    8     defining_code = stub(CodePhrase, :code_string => '532')
    9     lifecycle_state = stub(DvCodedText, :defining_code => defining_code)
    10     object_id = stub(ObjectID, :value => 'unique')
    11     contribution = ObjectRef.new(:namespace => 'local',
    12                                  :type => 'CONTRIBUTION',
    13                                  :id => object_id)
    14     commit_audit = stub(AuditDetails, :committer => 'UNKNOWN', :empty? => false)
    15     attestations = stub(Array, :empty? => false, :size => 12)
    16     other_input_version_uids = stub(Set, :empty? => false, :size => 5)
    17     @original_version = OriginalVersion.new(:uid => uid,
    18                                             :lifecycle_state => lifecycle_state,
    19                                             :attestations => attestations,
    20                                             :commit_audit => commit_audit,
    21                                             :contribution => contribution,
    22                                             :other_input_version_uids => other_input_version_uids)
    23   end
     7  it_should_behave_like 'change_control'
    248
    259  it 'should be an isntance of OriginalVersion' do
Note: See TracChangeset for help on using the changeset viewer.