source: ruby/branches/0.5/spec/lib/open_ehr/rm/common/generic/party_proxy_spec.rb@ 312

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

commit from amsterdam

File size: 538 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::Common::Generic
3include OpenEHR::RM::Support::Identification
4
5describe PartyProxy do
6 before(:each) do
7 external_ref = stub(PartyRef, :namespace => 'NERV')
8 @party_proxy = PartyProxy.new(:external_ref => external_ref)
9 end
10
11 it 'should be an isntance of PartyProxy' do
12 @party_proxy.should be_an_instance_of PartyProxy
13 end
14
15 it 'exnternal_ref.namespace should be NERV' do
16 @party_proxy.external_ref.namespace.should == 'NERV'
17 end
18end
Note: See TracBrowser for help on using the repository browser.