source: ruby/trunk/spec/lib/open_ehr/rm/data_structures/item_structure/representation/element_spec.rb@ 369

Last change on this file since 369 was 369, checked in by KOBAYASHI, Shinji, 14 years ago

merge from branches/0.5

File size: 659 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../../spec_helper'
2include OpenEHR::RM::DataStructures::ItemStructure::Representation
3include OpenEHR::RM::DataTypes::Text
4
5describe Element do
6 before(:each) do
7 value = DvText.new(:value => 'test')
8 @element = Element.new(:archetype_node_id => 'at0001',
9 :name => DvText.new(:value => 'element'),
10 :value => value)
11 end
12
13 it 'should be an instance of Element' do
14 @element.should be_an_instance_of Element
15 end
16
17 it 'value should be assigned as test' do
18 @element.value.value.should == 'test'
19 end
20
21 it 'nullflavor should be assigned'
22end
Note: See TracBrowser for help on using the repository browser.