Last change
on this file since 364 was 333, checked in by KOBAYASHI, Shinji, 15 years ago |
Versioning system is complexed
|
File size:
891 bytes
|
Rev | Line | |
---|
[333] | 1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
| 2 | require File.dirname(__FILE__) + '/shared_examples_spec'
|
---|
| 3 | include OpenEHR::RM::Common::ChangeControl
|
---|
| 4 |
|
---|
| 5 | describe ImportedVersion do
|
---|
| 6 | it_should_behave_like 'change_control'
|
---|
| 7 |
|
---|
| 8 | it 'should be an instance of ImportedVersion' do
|
---|
| 9 | @imported_version.should be_an_instance_of ImportedVersion
|
---|
| 10 | end
|
---|
| 11 |
|
---|
| 12 | it 'uid should be item.uid' do
|
---|
| 13 | @imported_version.uid.value.should == 'ABCD::EFG::2'
|
---|
| 14 | end
|
---|
| 15 |
|
---|
| 16 | it 'lifecycle_state should be item.lifecycle' do
|
---|
| 17 | @imported_version.lifecycle_state.defining_code.code_string.should == '532'
|
---|
| 18 | end
|
---|
| 19 |
|
---|
| 20 | it 'preceding_version_uid should be item.preceding_version_uid' do
|
---|
| 21 | @imported_version.preceding_version_uid.value.should == 'HIJ::KLM::1'
|
---|
| 22 | end
|
---|
| 23 |
|
---|
| 24 | it 'should raise ArgumentError when item is nil' do
|
---|
| 25 | lambda {
|
---|
| 26 | @imported_version.item = nil
|
---|
| 27 | }.should raise_error ArgumentError
|
---|
| 28 | end
|
---|
| 29 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.