spec/controllers/spotlight/resources/upload_controller_spec.rb in blacklight-spotlight-3.0.0.alpha.8 vs spec/controllers/spotlight/resources/upload_controller_spec.rb in blacklight-spotlight-3.0.0.alpha.9

- old
+ new

@@ -45,11 +45,11 @@ expect(response).to redirect_to new_exhibit_resource_path(exhibit, tab: 'upload') end it 'can add multivalued fields' do field = FactoryBot.create(:custom_field, exhibit: exhibit, is_multiple: true) - post :create, params: { exhibit_id: exhibit, resources_upload: { data: { field.field => %w[1 2 3] } } } - expect(assigns[:resource].sidecar.data).to include(field.field => %w[1 2 3]) + post :create, params: { exhibit_id: exhibit, resources_upload: { data: { field.slug => %w[1 2 3] } } } + expect(assigns[:resource].sidecar.data).to include(field.slug => %w[1 2 3]) end end end end