Sha256: d2e2e19bb54d2b49bab779a7f218c8e0e1cbf7d3bece27d1b0cfc56456d3fc93

Contents?: true

Size: 670 Bytes

Versions: 26

Compression:

Stored size: 670 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::DataTypes::Quantity

describe ProportionKind do
  it 'should be valid proportion kind 0' do
    ProportionKind.should be_valid_proportion_kind 0
  end

  it 'should be valid proportion kind 2' do
    ProportionKind.should be_valid_proportion_kind 2
  end

  it 'should be valid proportionkind 4' do
    ProportionKind.should be_valid_proportion_kind 4
  end

  it 'should not be valid proportionkind -1' do
    ProportionKind.should_not be_valid_proportion_kind -1
  end

  it 'should not be valid proportionkind 5' do
    ProportionKind.should_not be_valid_proportion_kind 5
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.4 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.3 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.2 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.1 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
openehr-1.1.0 spec/lib/openehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.9.5 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb