source: ruby/branches/0.5/spec/lib/open_ehr/rm/data_types/encapsulated/dv_parsable_spec.rb@ 237

Last change on this file since 237 was 237, checked in by KOBAYASHI, Shinji, 12 years ago

move from Test to Rspec

File size: 566 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::DataTypes::Encapsulated
3include OpenEHR::RM::DataTypes::Text
4
5describe DvParsable do
6 before(:each) do
7 @dv_parsable = DvParsable.new(:value => 'test',
8 :formalism => 'plain/text')
9 end
10
11 it 'value should be test' do
12 @dv_parsable.value.should == 'test'
13 end
14
15 it 's size should be 4' do
16 @dv_parsable.size.should be_equal 4
17 end
18
19 it 's formalism should be plain/text' do
20 @dv_parsable.formalism.should == 'plain/text'
21 end
22end
Note: See TracBrowser for help on using the repository browser.