1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 22:59:39 +02:00

Improve InviteCode generate! test

This commit is contained in:
Jose Farias 2024-02-02 19:34:58 -06:00
parent 5eb6418f01
commit 8118927f9b
No known key found for this signature in database
GPG key ID: 877CF7E5FFD0FB3F

View file

@ -19,7 +19,7 @@ class InviteCodeTest < ActiveSupport::TestCase
test "generate! creates a new invitation and returns its token" do
assert_difference "InviteCode.count", +1 do
assert_instance_of String, InviteCode.generate!
assert_equal InviteCode.generate!, InviteCode.last.token
end
end
end