mirror of
https://github.com/simi/omniauth-facebook.git
synced 2022-11-09 12:32:45 -05:00
Merge pull request #7 from olegkovalenko/ten_mins_from_now
fix ten_mins_from_now calculation
This commit is contained in:
commit
188e3799f6
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ describe OmniAuth::Strategies::Facebook do
|
|||
end
|
||||
|
||||
it 'returns the refresh token and expiry time when expiring' do
|
||||
ten_mins_from_now = (Time.now + 360).to_i
|
||||
ten_mins_from_now = (Time.now + 600).to_i
|
||||
@access_token.stub(:expires?) { true }
|
||||
@access_token.stub(:refresh_token) { '321' }
|
||||
@access_token.stub(:expires_at) { ten_mins_from_now }
|
||||
|
|
Loading…
Reference in a new issue