Skip to content

Commit

Permalink
use actual Hyrax::FileMetadata for ValkyrieFileSetIndexer spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn committed Dec 15, 2021
1 parent 4b51ad9 commit a91445f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spec/indexers/hyrax/valkyrie_file_set_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
let(:file_name) { 'mock_file.jpg' }
let(:original_file_id) { 'mf1' }
let(:mock_file) do
# attributes as defined in Hyrax::FileMetadata
mock_file_metadata_factory(
Hyrax::FileMetadata.new(metadata_attrs)
end

let(:metadata_attrs) do
{
file_identifier: 'VALFILEID1',
alternate_ids: ['AFFILEID1'],
file_set_id: fileset_id,
Expand Down Expand Up @@ -92,14 +95,14 @@
color_map: ['autumn'],
image_producer: ['MemoryImageSource'],
capture_device: ['Nikon 35mm'],
scanning_software: [''],
scanning_software: ['scanningsoftwareREAL'],
gps_timestamp: ['2021:03:11 09:35:02'],
latitude: ['38.8951'],
longitude: ['-77.0365'],

# attributes set by fits for video
aspect_ratio: ['5:4']
)
}
end

let(:mock_text) do
Expand Down

0 comments on commit a91445f

Please sign in to comment.