Sha256: 570a19d2ed2e4bb75a1189f3be791e12fed68ff3fd421a763afd560597c8db9e
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../../../spec_helper' include OpenEHR::RM::DataTypes::Quantity::DateTime describe DvTemporal do before(:each) do @dv_temporal = DvTemporal.new(:value => '2009-09-28T23:36') end it 'should be an instance of DvTemporal' do @dv_temporal.should be_an_instance_of DvTemporal end it 'should raise ArgumentError with nil value' do lambda { @dv_temporal.value = nil }.should raise_error ArgumentError end it 'should raise ArgumentError with empty value' do lambda { @dv_temporal.value = '' }.should raise_error ArgumentError end end
Version data entries
7 entries across 7 versions & 1 rubygems