Skip to content

Commit

Permalink
Add assertion to assertionless test
Browse files Browse the repository at this point in the history
This will warn in Rails 7.2
  • Loading branch information
Earlopain committed Jun 21, 2024
1 parent 2af22a4 commit dbe88f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model/submission_file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbe88f2

Please sign in to comment.