Last change
on this file since 388 was 251, checked in by KOBAYASHI, Shinji, 15 years ago |
proportion_kind moved test/unit to rspec
|
File size:
670 bytes
|
Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
2 | include OpenEHR::RM::DataTypes::Quantity
|
---|
3 |
|
---|
4 | describe 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
|
---|
24 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.