Skip to content

Commit

Permalink
Fix erroring fog test
Browse files Browse the repository at this point in the history
The Fog mock set-up for sending files to S3 raises an exception if the
data it is passed is nil. This can be fixed by updating this stub to
return an empty string.
  • Loading branch information
kevindew committed Apr 19, 2022
1 parent 960b977 commit 4d6853b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/workers/document_list_export_worker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DocumentListExportWorkerTest < ActiveSupport::TestCase

test "instantiates an EditionFilter with passed options converted to symbols" do
Admin::EditionFilter.expects(:new).with(Edition, @user, state: "draft", include_unpublishing: true, include_locked_documents: false)
@worker.stubs(:generate_csv)
@worker.stubs(generate_csv: "")
@worker.stubs(:send_mail)
@worker.perform({ "state" => "draft" }, @user.id)
end
Expand Down

0 comments on commit 4d6853b

Please sign in to comment.