source: ruby/branches/0.5/spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb@ 251

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

proportion_kind moved test/unit to rspec

File size: 670 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::DataTypes::Quantity
3
4describe ProportionKind do
5 it 'should be valid proportion kind 0' do
6 ProportionKind.should be_valid_proportion_kind 0
7 end
8
9 it 'should be valid proportion kind 2' do
10 ProportionKind.should be_valid_proportion_kind 2
11 end
12
13 it 'should be valid proportionkind 4' do
14 ProportionKind.should be_valid_proportion_kind 4
15 end
16
17 it 'should not be valid proportionkind -1' do
18 ProportionKind.should_not be_valid_proportion_kind -1
19 end
20
21 it 'should not be valid proportionkind 5' do
22 ProportionKind.should_not be_valid_proportion_kind 5
23 end
24end
Note: See TracBrowser for help on using the repository browser.