2010-03-26 10:27:19 +00:00
|
|
|
require 'test_helper'
|
2009-11-24 17:18:42 +00:00
|
|
|
|
|
|
|
class TrackableTest < ActiveSupport::TestCase
|
2012-02-17 19:43:15 +00:00
|
|
|
test 'required_fields should contain the fields that Devise uses' do
|
2012-02-20 11:54:45 +00:00
|
|
|
assert_same_content Devise::Models::Trackable.required_fields(User).sort, [
|
2012-02-17 19:43:15 +00:00
|
|
|
:current_sign_in_at,
|
|
|
|
:current_sign_in_ip,
|
|
|
|
:last_sign_in_at,
|
|
|
|
:last_sign_in_ip,
|
|
|
|
:sign_in_count
|
|
|
|
]
|
|
|
|
end
|
2009-11-24 17:18:42 +00:00
|
|
|
end
|