Changeset 352 for ruby/branches


Ignore:
Timestamp:
Nov 16, 2009, 4:01:10 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

fixed #44

Location:
ruby/branches/0.5
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/ehr.rb

    r351 r352  
    152152        end
    153153      end
     154
     155      class VersionedComposition < VersionedObject
     156        def is_persistent?
     157          return @all_versions.first.data.is_persistent?
     158        end
     159      end
    154160    end # of EHR
    155161  end # of RM
  • ruby/branches/0.5/spec/lib/open_ehr/rm/ehr/ehr_status_spec.rb

    r351 r352  
    4444    @ehr_status.other_details.archetype_node_id.should == 'at0005'
    4545  end
     46
     47  it 'should raise ArgumentError when parant is not nil' do
     48    lambda {
     49      @ehr_status.parent = 'parent'
     50    }.should raise_error ArgumentError
     51  end
    4652end
Note: See TracChangeset for help on using the changeset viewer.