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