spec/models/spotlight/resources/csv_spec.rb in blacklight-spotlight-0.3.1 vs spec/models/spotlight/resources/csv_spec.rb in blacklight-spotlight-0.4.1
- old
+ new
@@ -17,10 +17,10 @@
let(:label_to_field) do
{ 'id' => 'id', 'a' => 'solr_field_a', 'b' => 'custom_field_b' }
end
before do
- allow(subject).to receive_messages(csv: csv, label_to_field: label_to_field, exhibit: exhibit)
+ allow(subject).to receive_messages(csv: csv, label_to_field: label_to_field, exhibit: exhibit, to_global_id: "xyz")
end
it "should map csv headers to solr fields" do
expect(subject.to_solr).to have(2).items
expect(subject.to_solr.first).to include 'id' => [15], 'solr_field_a' => [1], 'custom_field_b' => [2]