Sha256: c4b0ab5e05314cf5f5ca00d6607969e6f8c48f1fb4dd1cb4c1035bfa57d2fcd9
Contents?: true
Size: 1.07 KB
Versions: 26
Compression:
Stored size: 1.07 KB
Contents
require File.dirname(__FILE__) + '/../../../../../spec_helper' include OpenEHR::RM::Common::Archetyped include OpenEHR::RM::DataTypes::Text include OpenEHR::RM::DataTypes::URI describe Link do before(:each) do @link = Link.new(:meaning => DvText.new(:value => 'generic'), :type => DvText.new(:value => 'problem'), :target => DvEhrUri.new(:value => 'ehr://test')) end it 'should be an instance of Link' do @link.should be_an_instance_of Link end it 'meaning should be generic' do @link.meaning.value.should == 'generic' end it 'target should be ehr://test' do @link.target.value.should == 'ehr://test' end it 'should raise ArgumentError with nil meaning' do lambda { @link.meaning = nil }.should raise_error ArgumentError end it 'should raise ArgumentError with nil type' do lambda { @link.type = nil }.should raise_error ArgumentError end it 'should raise ArgumentError with nil target' do lambda { @link.target = nil }.should raise_error ArgumentError end end
Version data entries
26 entries across 26 versions & 2 rubygems