Ignore:
Timestamp:
Nov 6, 2009, 8:27:30 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/generic/revision_history_spec.rb

    r330 r334  
    3131    @revision_history.most_recent_version_time_committed == '2009-11-02T22:19:34'
    3232  end
     33
     34  it 'should raise ArgumentError when item is nil' do
     35    lambda {
     36      @revision_history.items = nil
     37    }.should raise_error ArgumentError
     38  end
     39
     40  it 'should raise ArgumentError when item is empty' do
     41    lambda {
     42      @revision_history.items = Array.new
     43    }.should raise_error ArgumentError
     44  end
    3345end
Note: See TracChangeset for help on using the changeset viewer.