mirror of
https://github.com/we-promise/sure.git
synced 2026-07-19 16:25:24 +00:00
Negative-fee assertions fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user