Improve InviteCode generate! test

This commit is contained in:
Jose Farias
2024-02-02 19:34:58 -06:00
parent 5eb6418f01
commit 8118927f9b

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