Sha256: bc0de45bfb84e7823893b8601ddc1bffcb7cc62c55f648ad3462ca7c19217741
Contents?: true
Size: 530 Bytes
Versions: 34
Compression:
Stored size: 530 Bytes
Contents
require 'spec_helper' RSpec.describe ActiveFedora::Core::FedoraUriTranslator do describe ".call" do let(:result) { described_class.call(uri) } context "when given a Fedora URI" do let(:uri) { ActiveFedora.fedora.base_uri + "/6" } it "returns the id" do expect(result).to eq '6' end end context "when given a URI missing a slash" do let(:uri) { ActiveFedora.fedora.base_uri + "602-a" } it "returns the id" do expect(result).to eq "602-a" end end end end
Version data entries
34 entries across 34 versions & 1 rubygems