source: ruby/branches/0.5/spec/lib/open_ehr/rm/support/identification/access_group_ref_spec.rb@ 276

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

access_group_ref test/unit move to rspec

File size: 639 bytes
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::Support::Identification
3
4describe AccessGroupRef do
5 before(:each) do
6 object_id = ObjectID.new(:value => 'deadbeefbabe')
7 @access_group_ref = AccessGroupRef.new(:id => object_id,
8 :type => 'ACCESS_GROUP',
9 :namespace => 'unknown')
10 end
11
12 it 'should be an instance of AccessGroupRef' do
13 @access_group_ref.should be_an_instance_of AccessGroupRef
14 end
15
16 it 'type should be equal ACCESS_GROUP' do
17 @access_group_ref.type.should == 'ACCESS_GROUP'
18 end
19end
Note: See TracBrowser for help on using the repository browser.