Sha256: f68c7b6a53d8a27adfb3b1bddc6f0f1684f25acb7e106cf47cb087066057f81c

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../../spec_helper'
require 'open_ehr/rm/data_types/quantity/date_time'
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

3 entries across 3 versions & 1 rubygems

Version Path
open_ehr-1.0.2 spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_temporal_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_temporal_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_temporal_spec.rb