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