Skip to content

Commit

Permalink
Merge pull request #6045 from samvera/dashboard
Browse files Browse the repository at this point in the history
avoid kwargs solr_doc from dashboard_helper_behavior_spec setup
  • Loading branch information
dlpierce authored Apr 28, 2023
2 parents 88b4acc + 527441e commit acf5c3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/helpers/hyrax/dashboard_helper_behavior_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def create_models(model, user1, user2)

# deposited by the first user
2.times do |t|
solr_service.add id: "199#{t}", "depositor_tesim" => user1.user_key, "has_model_ssim" => [model],
"depositor_ssim" => user1.user_key, "generic_type_sim" => "Work"
solr_service.add({ id: "199#{t}", "depositor_tesim" => user1.user_key, "has_model_ssim" => [model],
"depositor_ssim" => user1.user_key, "generic_type_sim" => "Work" })
end

solr_service.add id: "1993", "depositor_tesim" => user1.user_key, "generic_type_sim" => "Big Work", "has_model_ssim" => [model], "depositor_ssim" => user1.user_key
solr_service.add({ id: "1993", "depositor_tesim" => user1.user_key, "generic_type_sim" => "Big Work", "has_model_ssim" => [model], "depositor_ssim" => user1.user_key })

# deposited by the second user, but editable by the first
solr_service.add id: "1994", "depositor_tesim" => user2.user_key, "has_model_ssim" => [model],
"depositor_ssim" => user2.user_key, "edit_access_person_ssim" => user1.user_key
solr_service.add({ id: "1994", "depositor_tesim" => user2.user_key, "has_model_ssim" => [model],
"depositor_ssim" => user2.user_key, "edit_access_person_ssim" => user1.user_key })
solr_service.commit
end
end

0 comments on commit acf5c3d

Please sign in to comment.