spec/models/solr_document_spec.rb in blacklight-6.25.0 vs spec/models/solr_document_spec.rb in blacklight-7.0.0.rc1
- old
+ new
@@ -1,17 +1,17 @@
# frozen_string_literal: true
RSpec.describe SolrDocument do
describe "access methods" do
let(:solrdoc) do
- SolrDocument.new(id: '00282214', format: ['Book'], title_display: 'some-title')
+ SolrDocument.new(id: '00282214', format: ['Book'], title_tsim: 'some-title')
end
describe "#[]" do
subject { solrdoc[field] }
- context "with title_display" do
- let(:field) { :title_display }
+ context "with title_tsim" do
+ let(:field) { :title_tsim }
it { is_expected.to eq 'some-title' }
end
context "with format" do
let(:field) { :format }
it { is_expected.to eq ['Book'] }