-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I have the following code:
user = FactoryGirl.create(:user)
returned_user = User.where(:encrypted_provider => User.encrypt_provider(user.provider), :encrypted_uid => User.encrypt_uid(user.uid)).first
But the returned user never returns anything.
When I deconstruct the command it seems like User.encrypt_provider(user.provider) is returning a different encrypted value to that stored in the DB, even though the two strings are the same.
What gives?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels