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-13.0.0 spec/models/solr_document_spec.rb
hydra-core-12.1.0 spec/models/solr_document_spec.rb
hydra-core-12.0.2 spec/models/solr_document_spec.rb
hydra-core-11.0.7 spec/models/solr_document_spec.rb
hydra-core-12.0.1 spec/models/solr_document_spec.rb
hydra-core-11.0.6 spec/models/solr_document_spec.rb
hydra-core-11.0.5 spec/models/solr_document_spec.rb
hydra-core-11.0.4 spec/models/solr_document_spec.rb
hydra-core-12.0.0 spec/models/solr_document_spec.rb
hydra-core-11.0.1 spec/models/solr_document_spec.rb
hydra-core-11.0.0 spec/models/solr_document_spec.rb
hydra-core-11.0.0.rc2 spec/models/solr_document_spec.rb
hydra-core-10.7.0 spec/models/solr_document_spec.rb
hydra-core-10.6.2 spec/models/solr_document_spec.rb
hydra-core-10.6.1 spec/models/solr_document_spec.rb
hydra-core-10.6.0 spec/models/solr_document_spec.rb
hydra-core-10.5.1 spec/models/solr_document_spec.rb
hydra-core-11.0.0.rc1 spec/models/solr_document_spec.rb
hydra-core-10.5.0 spec/models/solr_document_spec.rb
hydra-core-8.2.0 spec/models/solr_document_spec.rb