mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Actually fix this test by forcing to_s on the id
This commit is contained in:
parent
acc3adb2c1
commit
0285565322
1 changed files with 1 additions and 1 deletions
|
@ -8,6 +8,6 @@ class AuthenticatableTest < ActiveSupport::TestCase
|
||||||
test 'find_first_by_auth_conditions allows custom filtering parameters' do
|
test 'find_first_by_auth_conditions allows custom filtering parameters' do
|
||||||
user = User.create!(:email => "example@example.com", :password => "123456")
|
user = User.create!(:email => "example@example.com", :password => "123456")
|
||||||
assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }), user
|
assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }), user
|
||||||
assert_nil User.find_first_by_auth_conditions({ :email => "example@example.com" }, :id => user.id.next)
|
assert_nil User.find_first_by_auth_conditions({ :email => "example@example.com" }, :id => user.id.to_s.next)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue