spec/features/relations_spec.rb in geoblacklight-3.2.0 vs spec/features/relations_spec.rb in geoblacklight-3.3.0
- old
+ new
@@ -14,10 +14,10 @@
scenario 'Relations should respond to json' do
visit relations_solr_document_path('nyu_2451_34635', format: 'json')
response = JSON.parse(page.body)
expect(response['ancestors']['numFound']).to eq 0
- expect(response['descendants']['docs'].first['layer_slug_s']).to eq 'nyu_2451_34502'
+ expect(response['descendants']['docs'].first[Settings.FIELDS.UNIQUE_KEY]).to eq 'nyu_2451_34502'
expect(response['current_doc']).to eq 'nyu_2451_34635'
end
scenario 'Record with relations should render widget in catalog#show', js: true do
visit solr_document_path('nyu_2451_34635')