Sha256: a600279898c51b3b51672ad8a2867ba7ecb24e7785c3e9a4837c066c78dfe3e6

Contents?: true

Size: 733 Bytes

Versions: 26

Compression:

Stored size: 733 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::Common::Directory
include OpenEHR::RM::DataTypes::Text

describe Folder do
  before(:each) do
    items = stub(Array, :size => 3)
    folders = stub(Array, :size => 5, :empty? => false)
    @folder = Folder.new(:archetype_node_id => 'at0001',
                         :name => DvText.new(:value => 'test'),
                         :items => items,
                         :folders => folders)
  end

  it 'should an instance of Folder' do
    @folder.should be_an_instance_of Folder
  end

  it 'items size should be 3' do
    @folder.items.size.should == 3
  end

  it 'folders size should be 5' do
    @folder.folders.size.should == 5
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.4 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.3 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.2 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.1 spec/lib/openehr/rm/common/directory/folder_spec.rb
openehr-1.1.0 spec/lib/openehr/rm/common/directory/folder_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/rm/common/directory/folder_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/common/directory/folder_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/common/directory/folder_spec.rb
open_ehr-0.9.5 spec/lib/open_ehr/rm/common/directory/folder_spec.rb