Sha256: 5bc9d6e47c98bb39d8791cfba4970e9a9c49f46fee7f2ab2eb4cd7bde535abfd
Contents?: true
Size: 610 Bytes
Versions: 36
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true 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
36 entries across 36 versions & 1 rubygems