Last change
on this file since 237 was 237, checked in by KOBAYASHI, Shinji, 15 years ago |
move from Test to Rspec
|
File size:
566 bytes
|
Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
2 | include OpenEHR::RM::DataTypes::Encapsulated
|
---|
3 | include OpenEHR::RM::DataTypes::Text
|
---|
4 |
|
---|
5 | describe 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
|
---|
22 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.