Sha256: 7402dd3ba1f5e02a8a5d0f963deb2d64b44ebc4ebf1fc6020d92c564ecba76b3
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
require 'spec_helper' require 'active_fedora/noid/config' describe ActiveFedora::Noid::Config do it { is_expected.to respond_to(:template) } it { is_expected.to respond_to(:statefile) } it { is_expected.to respond_to(:translate_id_to_uri) } it { is_expected.to respond_to(:translate_uri_to_id) } describe '#template' do let(:default) { '.reeddeeddk' } it 'has a default' do expect(subject.template).to eq default end describe 'overriding' do before { subject.template = custom_template } let(:custom_template) { '.dddddd' } it 'allows setting a custom template' do expect(subject.template).to eq custom_template end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_fedora-noid-0.1.0 | spec/unit/config_spec.rb |
active_fedora-noid-0.0.1 | spec/unit/config_spec.rb |