Negative-fee assertions fixes

This commit is contained in:
Shibu M
2026-06-04 12:37:40 +00:00
parent d917143fd6
commit 262d8d4ac2

View File

@@ -230,7 +230,7 @@ class TransferTest < ActiveSupport::TestCase
)
assert transfer.invalid?
assert_equal [ "Source fee amount must be greater than or equal to 0" ], transfer.errors.full_messages
assert_includes transfer.errors.full_messages, "Source fee amount must be greater than or equal to 0"
end
test "negative destination fee is rejected" do
@@ -244,6 +244,6 @@ class TransferTest < ActiveSupport::TestCase
)
assert transfer.invalid?
assert_equal [ "Destination fee amount must be greater than or equal to 0" ], transfer.errors.full_messages
assert_includes transfer.errors.full_messages, "Destination fee amount must be greater than or equal to 0"
end
end