mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 01:24:06 +00:00
Improve InviteCode generate! test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user