Skip to content

Commit

Permalink
Mock response for mock_text
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Sep 20, 2023
1 parent 7827c80 commit b7a3c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/indexers/hyrax/valkyrie_file_set_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
allow(Hyrax.custom_queries).to receive(:find_original_file).with(file_set: file_set).and_return(mock_file)
allow(Hyrax.custom_queries).to receive(:find_file_metadata_by).with(id: file_set.original_file_id).and_return(mock_file)
allow(Hyrax.custom_queries).to receive(:find_thumbnail).with(file_set: file_set).and_return(mock_thumbnail)
allow(Hyrax.custom_queries).to receive(:find_extracted_text).with(file_set: file_set).and_return(mock_text)
allow(mock_file).to receive(:file_name).and_return(file_name)
end
subject { indexer.generate_solr_document }
Expand Down

0 comments on commit b7a3c08

Please sign in to comment.