Rev | Line | |
---|
[296] | 1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
| 2 | include OpenEHR::RM::Common::Archetyped
|
---|
| 3 |
|
---|
| 4 | describe Pathable do
|
---|
| 5 | before(:each) do
|
---|
| 6 | @pathable = Pathable.new
|
---|
| 7 | end
|
---|
| 8 |
|
---|
| 9 | it 'should be an instance of Pathable' do
|
---|
| 10 | @pathable.should be_an_instance_of Pathable
|
---|
| 11 | end
|
---|
| 12 |
|
---|
| 13 | it 'item_at_path should raise NotImplementedError' do
|
---|
| 14 | lambda {
|
---|
| 15 | @pathable.item_at_path('/')
|
---|
| 16 | }.should raise_error NotImplementedError
|
---|
| 17 | end
|
---|
| 18 |
|
---|
| 19 | it 'items_at_path should raise NotImplementedError' do
|
---|
| 20 | lambda {
|
---|
| 21 | @pathable.items_at_path('/')
|
---|
| 22 | }.should raise_error NotImplementedError
|
---|
| 23 | end
|
---|
| 24 |
|
---|
| 25 | it 'path_exists? should raise NotImplementedError' do
|
---|
| 26 | lambda {
|
---|
| 27 | @pathable.path_exists?('/')
|
---|
| 28 | }.should raise_error NotImplementedError
|
---|
| 29 | end
|
---|
| 30 |
|
---|
| 31 | it 'path_of_item should raise NotImplementedError' do
|
---|
| 32 | lambda {
|
---|
| 33 | @pathable.path_of_item('/')
|
---|
| 34 | }.should raise_error NotImplementedError
|
---|
| 35 | end
|
---|
| 36 |
|
---|
| 37 | it 'path_unique? should raise NotImplementedError' do
|
---|
| 38 | lambda {
|
---|
| 39 | @pathable.path_unique?('/')
|
---|
| 40 | }.should raise_error NotImplementedError
|
---|
| 41 | end
|
---|
| 42 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.