Sha256: 6e34d934ae9532e1012fba1f8157a337be809e482ef5cf8b8d235f1acb6dd76d
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 Bytes
Contents
require 'iremix/token' module Iremix describe Token do describe "#access_token" do let(:access_token) { stub(:access_token) } let(:client) { stub(:client) } before :each do Iremix.stub(:callback_url => 'url') end it "returns a token from the client" do client.stub(:auth_code) { client } client.stub(:get_token) .with('123abc', :redirect_url => 'url') { access_token } token = Token.new('123abc', client) token.access_token.should == access_token end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iremix-ruby-0.0.5 | spec/iremix/token_spec.rb |
iremix-ruby-0.0.4 | spec/iremix/token_spec.rb |
iremix-ruby-0.0.3 | spec/iremix/token_spec.rb |
iremix-ruby-0.0.2 | spec/iremix/token_spec.rb |