mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Change test to use acts_like? so that we can have DateTime fields
This commit is contained in:
parent
b51c3c1911
commit
65d7d1ba55
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ class TrackableHooksTest < ActionDispatch::IntegrationTest
|
|||
sign_in_as_user
|
||||
user.reload
|
||||
|
||||
assert_kind_of Time, user.current_sign_in_at
|
||||
assert_kind_of Time, user.last_sign_in_at
|
||||
assert user.current_sign_in_at.acts_like?(:time)
|
||||
assert user.last_sign_in_at.acts_like?(:time)
|
||||
|
||||
assert_equal user.current_sign_in_at, user.last_sign_in_at
|
||||
assert user.current_sign_in_at >= user.created_at
|
||||
|
|
Loading…
Add table
Reference in a new issue