Sha256: 146dd40e8a546fb2998308d2ef6dcfe6ba354e58b75f9d15aaef48e390a4bda5
Contents?: true
Size: 813 Bytes
Versions: 7
Compression:
Stored size: 813 Bytes
Contents
require 'spec_helper' describe ArchivesSpace::Configuration do it 'uses the default profile for configuration settings' do config = ArchivesSpace::Configuration.new expect(config.base_uri).to eq DEFAULT_BASE_URI end it 'allows configuration settings to be provided' do config = ArchivesSpace::Configuration.new({ base_uri: CUSTOM_BASE_URI, }) expect(config.base_uri).to eq CUSTOM_BASE_URI end it 'allows the configuration properties to be updated' do config = ArchivesSpace::Configuration.new config.base_uri = CUSTOM_BASE_URI expect(config.base_uri).to eq CUSTOM_BASE_URI end it 'ignores unrecognized configuration properties' do config = ArchivesSpace::Configuration.new({ xyz: 123 }) expect{ config.xyz }.to raise_error(NoMethodError) end end
Version data entries
7 entries across 7 versions & 1 rubygems