Sha256: 64e52531dc72f28b463af8688c19dccce97b28e0555ab474d387cc6e77fd3de6
Contents?: true
Size: 586 Bytes
Versions: 41
Compression:
Stored size: 586 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.host + ActiveFedora.fedora.base_path + "/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.host + ActiveFedora.fedora.base_path + "602-a" } it "returns the id" do expect(result).to eq "602-a" end end end end
Version data entries
41 entries across 41 versions & 1 rubygems