Sha256: a52f2eb34125f02b4607f6b0e9023c62677ba797f0d6722ecc6e2a0ddb4cd180
Contents?: true
Size: 632 Bytes
Versions: 7
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Blacklight::Solr::Document::MoreLikeThis do before(:all) do @mock_class = Class.new do include Blacklight::Solr::Document end end it "should pluck the MoreLikeThis results from the Solr Response" do mock_solr_response = double(:more_like => [{'id' => 'abc'}]) result = @mock_class.new({:id => '123'}, mock_solr_response).more_like_this expect(result).to have(1).item expect(result.first).to be_a_kind_of(@mock_class) expect(result.first.id).to eq 'abc' expect(result.first.solr_response).to eq mock_solr_response end end
Version data entries
7 entries across 7 versions & 1 rubygems