Browse files

Expires set correctly as an offset instead of an epoch timestmp

  • Loading branch information...
1 parent 38f15ff commit 786f5e2259ba48f843d5864a77666b8388516b3b @jkassemi jkassemi committed May 18, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/client_spec.rb
View
1 spec/client_spec.rb
@@ -70,6 +70,7 @@
client = Mogli::Client.create_from_code_and_authenticator("code",mock("auth",:access_token_url=>"url"))
client.access_token.should == "114355055262088|2.6_s8VD_HRneAq3_tUEHJhA__.3600.1272920400-12451752|udZzWly7ptI7IMgX7KTdzaoDrhU."
client.expiration.should_not be_nil
+ (client.expiration > Time.now).should be_true
end
it "create set the expiration into the future if there is on param" do

0 comments on commit 786f5e2

Please sign in to comment.