Sha256: 6b42fac9686c3a88597dbc13e53cf3af8ec98cb2afec9952dea547b773d3b357

Contents?: true

Size: 605 Bytes

Versions: 15

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'

RSpec.describe ActiveFedora::Core::FedoraIdTranslator do
  describe ".call" do
    let(:result) { described_class.call(id) }
    context "when given an id" do
      let(:good_uri) { ActiveFedora.fedora.host+ActiveFedora.fedora.base_path+"/banana" }
      let(:id) { "banana" }
      it "should return a fedora URI" do
        expect(result).to eq good_uri
      end
      context "when given an id with a leading slash" do
        let(:id) { "/banana" }
        it "should return a good fedora URI" do
          expect(result).to eq good_uri
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
active-fedora-9.0.8 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.5.0 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.4.3 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.4.2 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.4.1 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.4.0 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.3.0 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.2.1 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.2.0 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.2.0.rc2 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.2.0.rc1 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.1.2 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.1.1 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.1.0 spec/unit/core/fedora_id_translator_spec.rb
active-fedora-9.1.0.rc1 spec/unit/core/fedora_id_translator_spec.rb