Sha256: 3ae714b430d71f69919a05af5a2b38090dc2a5da0654bd5c74a0956c71da3a9d

Contents?: true

Size: 1.16 KB

Versions: 16

Compression:

Stored size: 1.16 KB

Contents

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

shared_examples 'c_dv_quantity lacked items' do
  it 'parsed to archetypes' do
    archetype.should be_an_instance_of Archetype
  end
end

describe 'items only with property' do
  it_behaves_like 'c_dv_quantity lacked items' do
    let(:archetype) {adl14_archetype('adl-test-entry.c_dv_quantity_property.test.adl')}
  end
end

describe 'items only with list' do
  it_behaves_like 'c_dv_quantity lacked items' do
    let(:archetype) {adl14_archetype('adl-test-entry.c_dv_quantity_list.test.adl')}
  end
end

describe 'reversed items' do
  it_behaves_like 'c_dv_quantity lacked items' do
    let(:archetype) {adl14_archetype('adl-test-entry.c_dv_quantity_reversed.test.adl')}
  end
end
describe 'units only' do
  it_behaves_like 'c_dv_quantity lacked items' do
    let(:archetype) {adl14_archetype('adl-test-entry.c_dv_quantity_item_units_only.test.adl')}
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.7 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.6 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.5 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.4 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.3 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.2 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.1 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.2.0 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.6 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.5 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.4 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.3 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.2 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.1 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb
openehr-1.1.0 spec/lib/openehr/parser/c_dv_quantity_shared_example_for_lacked_items_spec.rb