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
open_ehr-0.9.4 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.9.3 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.9.2 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.9.1 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.9.0 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
open_ehr-0.6.1 spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb