Last change
on this file since 351 was 276, checked in by KOBAYASHI, Shinji, 15 years ago |
access_group_ref test/unit move to rspec
|
File size:
639 bytes
|
Rev | Line | |
---|
[276] | 1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
| 2 | include OpenEHR::RM::Support::Identification
|
---|
| 3 |
|
---|
| 4 | describe 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
|
---|
| 19 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.