diff --git a/Gemfile.lock b/Gemfile.lock index 7bb60249230..81e6c9f6bcf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -249,8 +249,8 @@ GEM aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.8) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.79.0) - aws-sdk-core (~> 3, >= 3.191.0) + aws-sdk-kms (1.80.0) + aws-sdk-core (~> 3, >= 3.193.0) aws-sigv4 (~> 1.1) aws-sdk-s3 (1.148.0) aws-sdk-core (~> 3, >= 3.193.0) diff --git a/modules/simple_forms_api/spec/services/pdf_filler_spec.rb b/modules/simple_forms_api/spec/services/pdf_filler_spec.rb index 982b9f0a158..a227e85aa76 100644 --- a/modules/simple_forms_api/spec/services/pdf_filler_spec.rb +++ b/modules/simple_forms_api/spec/services/pdf_filler_spec.rb @@ -34,15 +34,17 @@ describe '#generate' do forms.each do |file_name| - context "when mapping the pdf data given JSON file: #{file_name}" do - let(:expected_pdf_path) { map_pdf_data(file_name) } + ActiveRecord::Base.transaction do + context "when mapping the pdf data given JSON file: #{file_name}" do + let(:expected_pdf_path) { map_pdf_data(file_name) } - # remove the pdf if it already exists - after { FileUtils.rm_f(expected_pdf_path) } + # remove the pdf if it already exists + after { FileUtils.rm_f(expected_pdf_path) } - context 'when a legitimate JSON payload is provided' do - it 'properly fills out the associated PDF' do - expect(File.exist?(expected_pdf_path)).to eq(true) + context 'when a legitimate JSON payload is provided' do + it 'properly fills out the associated PDF' do + expect(File.exist?(expected_pdf_path)).to eq(true) + end end end end