Skip to content

Commit

Permalink
avoid kwargs solr_doc from dashboard_helper_behavior_spec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson committed Apr 27, 2023
1 parent 4a626ee commit dc9f4fe
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 dc9f4fe

Please sign in to comment.