Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (20 sloc) 426 Bytes
module Spinach
module Facebook
def mock_facebook(id, token)
OmniAuth.config.test_mode = true
OmniAuth.config.mock_auth[:facebook] = {
provider: 'facebook',
uid: id,
info: {
email: '',
name: '',
},
credentials: {
token: token,
expires_at: 1321747205,
expires: true
}
}
end
end
end