source: ruby/branches/0.5/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_time_spec.rb@ 322

Last change on this file since 322 was 322, checked in by KOBAYASHI, Shinji, 15 years ago

common/generic near completed

File size: 463 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../../spec_helper'
2include OpenEHR::RM::DataTypes::Quantity::DateTime
3
4describe DvDateTime do
5 before(:each) do
6 @dv_date_time = DvDateTime.new(:value => '2009-09-29T15:03:22.3')
7 end
8
9 it 'should be an instance of DvDateTime' do
10 @dv_date_time.should be_an_instance_of DvDateTime
11 end
12
13 it 'magnitude should be 63425495002.3' do
14 @dv_date_time.magnitude.should be_close 63423697018.3, 0.001
15 end
16end
Note: See TracBrowser for help on using the repository browser.