We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8cc56 commit 0b159e6Copy full SHA for 0b159e6
spec/actors/hyrax/actors/file_actor_spec.rb
@@ -48,9 +48,16 @@
48
.with(:essi, :store_original_files) \
49
.and_return(true)
50
end
51
- it 'saves an image file to the member file_set' do
52
- file_actor.ingest_file(io)
53
- expect(file_set.reload.original_file.mime_type).to include "image/png"
+ context 'when :store_in_external_storage is false' do
+ before do
+ allow(ESSI.config).to receive(:dig) \
54
+ .with(:essi, :store_in_external_storage) \
55
+ .and_return(false)
56
+ end
57
+ it 'saves an image file to the member file_set' do
58
+ file_actor.ingest_file(io)
59
+ expect(file_set.reload.original_file.mime_type).to include "image/png"
60
61
62
context 'when :store_in_external_storage is true' do
63
before do
0 commit comments