mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 07:09:39 +02:00
Improve InviteCode generate! test
This commit is contained in:
parent
5eb6418f01
commit
8118927f9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue