Changeset 97 for ruby/trunk/lib/models/tests/test_reference_model.rb
- Timestamp:
- Aug 16, 2008, 6:46:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/test_reference_model.rb
r96 r97 153 153 assert_nothing_raised(Exception){@uid_based_id = OpenEHR::RM::Support::Identification::UID_Based_ID.new('rrip::0.0.3')} 154 154 assert_nothing_raised(Exception){@hier_object_id = OpenEHR::RM::Support::Identification::Hier_Object_ID.new('0.0.4')} 155 assert_nothing_raised(Exception){@locatable_ref = OpenEHR::RM::Support::Identification::Locatable_Ref.new('unknown', 'PERSON', @uid_based_id, ' /data/event[at0001, standing]')}155 assert_nothing_raised(Exception){@locatable_ref = OpenEHR::RM::Support::Identification::Locatable_Ref.new('unknown', 'PERSON', @uid_based_id, 'data/event[at0001, standing]')} 156 156 end 157 157 … … 349 349 # test constructor function 350 350 assert_equal 'unknown', @locatable_ref.namespace 351 assert_equal 'P ARTY', @locatable_ref.type351 assert_equal 'PERSON', @locatable_ref.type 352 352 assert_equal @uid_based_id, @locatable_ref.id 353 assert_equal '/data/event[at0001, standing]', @locatable_ref.path 354 assert_equal 'ehr://rrip/data/event[at0001, standing]', @locatable_ref.as_uri 355 356 353 assert_equal 'data/event[at0001, standing]', @locatable_ref.path 354 assert_equal 'ehr://rrip::0.0.3/data/event[at0001, standing]', @locatable_ref.as_uri 355 #test path 356 assert_nothing_raised(Exception){@locatable_ref.path = 'data/event[at0002, tilting]'} 357 assert_equal 'data/event[at0002, tilting]', @locatable_ref.path 358 assert_equal 'ehr://rrip::0.0.3/data/event[at0002, tilting]', @locatable_ref.as_uri 357 359 end 358 360 end
Note:
See TracChangeset
for help on using the changeset viewer.