1
0
Fork 0
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:
Mark Dodwell 2011-11-15 10:05:19 -08:00
commit 188e3799f6

View file

@ -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 }