diff --git a/test/model/submission_file_test.rb b/test/model/submission_file_test.rb index 868c57f..c56e4e9 100644 --- a/test/model/submission_file_test.rb +++ b/test/model/submission_file_test.rb @@ -21,7 +21,7 @@ class SubmissionFileTest < ActiveSupport::TestCase it "allows updating unrelated attributes" do sm = create(:submission_file_with_original, file_name: "1.webp") sm.update!(file_identifier: "foo") - SubmissionFile.find(sm.id).update!(file_identifier: "bar") + assert_nothing_raised { SubmissionFile.find(sm.id).update!(file_identifier: "bar") } end it "allows replacing the original" do