Skip to content

Commit

Permalink
Remove depreciated Hyrax::SolrQueryBuilderService from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Oct 27, 2023
1 parent c728f53 commit 6c1f3e6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

it "is successful" do
subject
expect(solr_params[:fq]).to eq ["-" + Hyrax::SolrQueryBuilderService.construct_query_for_ids([work.id])]
expect(solr_params[:fq]).to eq ["-" + Hyrax::SolrQueryService.new.with_ids(ids: [work.id]).build]
end
end

Expand All @@ -40,7 +40,8 @@
it "is successful" do
subject
ids = Hyrax::SolrService.query("{!field f=id}#{work.id}", fl: "member_ids_ssim").flat_map { |x| x.fetch("member_ids_ssim", []) }
expect(solr_params[:fq]).to eq ["-" + Hyrax::SolrQueryBuilderService.construct_query_for_ids([ids])]
puts(ids)
expect(solr_params[:fq]).to eq ["-" + Hyrax::SolrQueryService.new.with_ids(ids: [ids]).build]
end
end

Expand Down

0 comments on commit 6c1f3e6

Please sign in to comment.