Sha256: 6d6155a64a551c9e687aa47d63d72f2233a5da92369b97278c3e532814428cf9
Contents?: true
Size: 966 Bytes
Versions: 10
Compression:
Stored size: 966 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' class FakeMetadataMapper end describe Zizia do describe '#config' do it 'can set a default error stream' do expect { described_class.config { |c| c.default_error_stream = STDOUT } } .to change { described_class.config.default_error_stream } .to(STDOUT) end it 'can set a default info stream' do expect { described_class.config { |c| c.default_info_stream = STDOUT } } .to change { described_class.config.default_info_stream } .to(STDOUT) end it 'has a default metadata mapper' do expect(described_class.config.metadata_mapper_class).to eq Zizia::HyraxBasicMetadataMapper end it 'can set a default metadata mapper' do expect { described_class.config { |c| c.metadata_mapper_class = FakeMetadataMapper } } .to change { described_class.config.metadata_mapper_class } .to(FakeMetadataMapper) end end end
Version data entries
10 entries across 10 versions & 1 rubygems