Sha256: 80f81a0635a434bec4ebc51ea052d369f8d85b46f2caed7417c06b72bfc323af

Contents?: true

Size: 500 Bytes

Versions: 67

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'

describe SolrDocument do
  describe "#to_model" do

    before do
      class SolrDocumentWithHydraOverride < SolrDocument
        include Hydra::Solr::Document
      end
    end

    # this isn't a great test, but...
    it "should try to cast the SolrDocument to the Fedora object" do
      expect(ActiveFedora::Base).to receive(:load_instance_from_solr).with('asdfg', kind_of(SolrDocument))
      SolrDocumentWithHydraOverride.new(:id => 'asdfg').to_model
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
hydra-core-10.4.0 spec/models/solr_document_spec.rb
hydra-core-10.4.0.rc2 spec/models/solr_document_spec.rb
hydra-core-10.4.0.rc1 spec/models/solr_document_spec.rb
hydra-core-10.3.4 spec/models/solr_document_spec.rb
hydra-core-10.3.3 spec/models/solr_document_spec.rb
hydra-core-10.3.2 spec/models/solr_document_spec.rb
hydra-core-10.3.0 spec/models/solr_document_spec.rb
hydra-core-10.2.0 spec/models/solr_document_spec.rb
hydra-core-10.1.0 spec/models/solr_document_spec.rb
hydra-core-10.0.2 spec/models/solr_document_spec.rb
hydra-core-10.0.1 spec/models/solr_document_spec.rb
hydra-core-10.0.0 spec/models/solr_document_spec.rb
hydra-core-10.0.0.beta4 spec/models/solr_document_spec.rb
hydra-core-10.0.0.beta3 spec/models/solr_document_spec.rb
hydra-core-10.0.0.beta2 spec/models/solr_document_spec.rb
hydra-core-10.0.0.beta1 spec/models/solr_document_spec.rb
hydra-core-9.10.0 spec/models/solr_document_spec.rb
hydra-core-9.9.0 spec/models/solr_document_spec.rb
hydra-core-9.8.1 spec/models/solr_document_spec.rb
hydra-core-9.8.0 spec/models/solr_document_spec.rb