Skip to content

Commit

Permalink
Expires set correctly as an offset instead of an epoch timestmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jkassemi committed May 18, 2011
1 parent 38f15ff commit 786f5e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 786f5e2

Please sign in to comment.