Sha256: ccdd832fb60aeaca333a23e7458f5e8728ca964fa608443c50c334a3ca507ee2

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

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' }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_fedora-noid-1.1.1 spec/unit/noid_spec.rb
active_fedora-noid-1.1.0 spec/unit/noid_spec.rb
active_fedora-noid-1.0.3 spec/unit/noid_spec.rb
active_fedora-noid-1.0.2 spec/unit/noid_spec.rb
active_fedora-noid-1.0.1 spec/unit/noid_spec.rb
active_fedora-noid-0.3.0 spec/unit/noid_spec.rb