Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid kwargs solr_doc from dashboard_helper_behavior_spec setup #6045

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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