spec/indexing/indexable_spec.rb in kithe-2.0.1 vs spec/indexing/indexable_spec.rb in kithe-2.0.2
- old
+ new
@@ -44,10 +44,10 @@
work.destroy!
work.update_index
expect(WebMock).to have_requested(:post, @solr_update_url).
with { |req|
- JSON.parse(req.body) == { "delete" => work.id }
+ JSON.parse(req.body) == { "delete" => work.send(Kithe.indexable_settings.solr_id_value_attribute) }
}
end
end
describe "with explicit mapper" do