Skip to content

Commit

Permalink
updates to submission builder in accordance with new direction (#18517)
Browse files Browse the repository at this point in the history
  • Loading branch information
pennja authored Sep 24, 2024
1 parent 47d74d0 commit 9655e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def handle_error(message, error, **)
end

def temp_directory_path
@temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}/").to_s
@temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}-archive/").to_s
end

def s3_resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
attachments: nil,
benefits_intake_uuid:,
file_path: nil,
include_json_archive: true,
include_manifest: true,
include_text_archive: true,
metadata: nil,
submission: nil
}
Expand Down Expand Up @@ -75,7 +73,7 @@
describe '#run' do
subject(:run) { archive_builder_instance.run }

let(:temp_file_path) { Rails.root.join("tmp/#{benefits_intake_uuid}-random-letters-n-numbers/").to_s }
let(:temp_file_path) { Rails.root.join("tmp/#{benefits_intake_uuid}-random-letters-n-numbers-archive/").to_s }

context 'when properly initialized' do
it 'completes successfully' do
Expand Down

0 comments on commit 9655e0b

Please sign in to comment.