Skip to content

Commit

Permalink
stub env
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellnit committed Sep 10, 2024
1 parent 81ed617 commit 254a941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/helpers/audio_visual_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

before do
stub_env('AWS_AV_ASSET_BUCKET', 'av-derivatives')
stub_env('AWS_ENDPOINT_URL', 'http://minio:9000')
allow(Aws::S3::Object).to receive(:new).with(bucket_name: s3_bucket, key: key, client: mock_s3_client).and_return(mock_s3_object)
allow(mock_s3_object).to receive(:presigned_url).with(:get, expires_in: 3600).and_return(url)
end
Expand Down

0 comments on commit 254a941

Please sign in to comment.