BUGFIX: identity_url was not fished out correctly

If I user logged in with Google and then changed email,
they would no longer be able to log in with google
This commit is contained in:
Sam
2014-03-26 14:52:50 +11:00
parent 49dbb992ad
commit 5897d3419c
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,8 @@ describe Auth::OpenIdAuthenticator do
auth = Auth::OpenIdAuthenticator.new("test", "id", trusted: true)
user = Fabricate(:user)
result = auth.after_authenticate(info: {email: user.email}, extra: {identity_url: 'abc'})
response = OpenStruct.new(identity_url: 'abc')
result = auth.after_authenticate(info: {email: user.email}, extra: {response: response})
result.user.should == user
end
end