Sha256: 07544cf26efcb19cfa57484e9bd886bd6dda64d685f02d85e45dc2b41faf38f1
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' RSpec.describe ActiveFedora::CleanConnection do subject { ActiveFedora.fedora.clean_connection } describe "#get" do context "when given an existing resource uri" do let(:uri) { asset.rdf_subject } let(:asset) do ActiveFedora::Base.create do |a| a.resource << [a.rdf_subject, RDF::DC.title, "test"] end end let(:result) { subject.get(uri) } it "returns a clean graph" do graph = result.graph expect(graph.statements.to_a.length).to eq 1 expect(graph.statements.to_a.first).to eq [asset.rdf_subject, RDF::DC.title, "test"] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active-fedora-9.6.2 | spec/integration/clean_connection_spec.rb |
active-fedora-9.6.1 | spec/integration/clean_connection_spec.rb |