Last change
on this file since 388 was 259, checked in by KOBAYASHI, Shinji, 15 years ago |
support/identification package moving from test/unit to rspec
|
File size:
694 bytes
|
Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
2 | include OpenEHR::RM::DataTypes::Text
|
---|
3 | include OpenEHR::RM::Support::Identification
|
---|
4 |
|
---|
5 | describe CodePhrase do
|
---|
6 | before(:each) do
|
---|
7 | terminology_id = TerminologyID.new(:value => 'openehr')
|
---|
8 | @code_phrase = CodePhrase.new(:code_string => '535',
|
---|
9 | :terminology_id => terminology_id)
|
---|
10 | end
|
---|
11 |
|
---|
12 | it 'should be an instance of CodePhrase' do
|
---|
13 | @code_phrase.should be_an_instance_of CodePhrase
|
---|
14 | end
|
---|
15 |
|
---|
16 | it 's code_string should be 535' do
|
---|
17 | @code_phrase.code_string.should == '535'
|
---|
18 | end
|
---|
19 |
|
---|
20 | it 's terminology_id.name should be openehr' do
|
---|
21 | @code_phrase.terminology_id.name.should == 'openehr'
|
---|
22 | end
|
---|
23 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.