Sha256: 105116a6734e36ace42ef81a7f206338d989d9f052edc469cad75dd2642e54ee

Contents?: true

Size: 990 Bytes

Versions: 3

Compression:

Stored size: 990 Bytes

Contents

# ticket 174
require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/parser_spec_helper'
require 'open_ehr/am/openehr_profile/data_types/quantity'
include ::OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity
require 'open_ehr/rm/data_types/quantity'
include ::OpenEHR::RM::DataTypes::Quantity

describe 'CDvQuantity empty' do
  before(:all) do
    archetype = adl14_archetype('adl-test-entry.c_dv_quantity_empty.test.adl')
    @c_dv_quantity = archetype.definition.attributes[0].children[0].attributes[0].children[0].attributes[0].children[0]
  end

  it 'is an instance of CDvQuantity' do
    @c_dv_quantity.should be_an_instance_of CDvQuantity
  end

  it 'list is nil' do
    @c_dv_quantity.list.should be_nil
  end

  it 'property is nil' do
    @c_dv_quantity.property.should be_nil
  end

  it 'assumed value is nil' do
    @c_dv_quantity.assumed_value.should be_nil
  end

  it 'is any allowed' do
    @c_dv_quantity.should be_any_allowed
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
open_ehr-1.0.2 spec/lib/open_ehr/parser/c_dv_quantity_any_allowed_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/parser/c_dv_quantity_any_allowed_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/parser/c_dv_quantity_any_allowed_spec.rb