source: ruby/branches/0.5/spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb@ 259

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

support/identification package moving from test/unit to rspec

File size: 694 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::DataTypes::Text
3include OpenEHR::RM::Support::Identification
4
5describe 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
23end
Note: See TracBrowser for help on using the repository browser.