Sha256: 409d2a69b95120e2a706357cc6a26be3ead544a39a85cc56e161fa361378b286
Contents?: true
Size: 973 Bytes
Versions: 26
Compression:
Stored size: 973 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../spec_helper' include OpenEHR::RM::EHR include OpenEHR::RM::Security include OpenEHR::RM::DataTypes::Text describe EHRAccess do before(:each) do name = DvText.new(:value => 'EHRAccess') settings = stub(AccessControlSettings) @ehr_access = EHRAccess.new(:archetype_node_id => 'at0001', :name => name, :settings => settings, :scheme => 'SSL') end it 'should be an instance of EHRAccess' do @ehr_access.should be_an_instance_of EHRAccess end it 'settings should be assigned, but Security package is not determined' do @ehr_access.settings.should_not be_nil end it 'schema should be assigned properly' do @ehr_access.scheme.should == 'SSL' end it 'should raise ArgumentError with nil schema' do lambda { @ehr_access.scheme = nil }.should raise_error ArgumentError end end
Version data entries
26 entries across 26 versions & 2 rubygems