Sha256: 0af4737f4fb9b932c80e434c214bfe804efa6abbc2486f7c420573a2224a2986
Contents?: true
Size: 1.67 KB
Versions: 3
Compression:
Stored size: 1.67 KB
Contents
require 'spec_helper' describe "Mirating RDF terms" do let(:mover) { FedoraMigrate::RDFDatastreamMover.new(file, ExampleModel::RDFProperties.new) } context "normal record" do let(:file) { FedoraMigrate.source.connection.find("sufia:xp68km39w").datastreams["descMetadata"] } it "should call the before and after hooks when migrating" do expect(mover).to receive(:before_rdf_datastream_migration) expect(mover).to receive(:after_rdf_datastream_migration) mover.migrate end describe "using triples" do subject do mover.migrate mover.target end it "adds each triple to a new Fedora4 resource" do expect(subject.title.first).to eql "Sample Migration Object A" expect(subject.creator.first).to eql "Adam Wead" end end end context "record with UTF8 chracters" do let(:file) { FedoraMigrate.source.connection.find("scholarsphere:7d279232g").datastreams["descMetadata"] } describe "using triples" do subject do mover.migrate mover.target end it "adds each triple to a new Fedora4 resource" do expect(subject.title.first).to eql "Emerging Role of Genomic Profiling of Advanced Tumors to Aid in Treatment Selection: What Nurses Should Know" expect(subject.creator.first).to eql "Eileen Bannon, RN, MSN, OCN, CBCN" expect(subject.description.first). to eql "Objectives:\r\n• Explain the role of a new genomic assay (Target Now™) in guiding oncology treatment plans.\r\n• Describe the Target Now™ assay.\r\n• Present a case study where Target Now™ was instrumental in the patient’s treatment plan." end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fedora-migrate-0.3.0 | spec/integration/rdf_migration_spec.rb |
fedora-migrate-0.2.0 | spec/integration/rdf_migration_spec.rb |
fedora-migrate-0.1.0 | spec/integration/rdf_migration_spec.rb |