Sha256: d663116816bc3a117c12290d6cb738530c4e25dd94003e1e9246c92579307882
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
describe ActiveFedora::Noid do describe '#configure' do it { is_expected.to respond_to(:configure) } end describe '#config' do it 'returns a config object' do expect(subject.config).to be_instance_of ActiveFedora::Noid::Config end end describe '#treeify' do subject { ActiveFedora::Noid.treeify(id) } let(:id) { 'abc123def45' } it { is_expected.to eq 'ab/c1/23/de/abc123def45' } context 'with a seven-digit identifier' do let(:id) { 'abc123z' } it { is_expected.to eq 'ab/c1/23/z/abc123z' } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_fedora-noid-2.0.0.beta5 | spec/unit/noid_spec.rb |
active_fedora-noid-2.0.0.beta4 | spec/unit/noid_spec.rb |