Sha256: d8d5e5082c4792b4e2dfaa852503c000dca9deb55f57c13aa61fa7d179db7fca

Contents?: true

Size: 646 Bytes

Versions: 30

Compression:

Stored size: 646 Bytes

Contents

require File.join(File.dirname(__FILE__), '../../spec_helper')

describe FbGraph::Auth::Cookie, '.parse' do
  before do
    @client = OAuth2::Client.new('client_id', 'client_secret')
    @cookie = {
      'fbs_client_id' => "access_token=t&expires=0&secret=s&session_key=k&sig=f4bae8ec88ba11440e3bdcc1bcf78317&uid=12345"
    }
  end

  it 'should parse fbs_APP_ID cookie' do
    cookie = FbGraph::Auth::Cookie.parse(@client, @cookie)
    cookie[:access_token].should == 't'
    cookie[:expires].should      == 0
    cookie[:secret].should       == 's'
    cookie[:session_key].should  == 'k'
    cookie[:uid].should          == '12345'
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
fb_graph-1.3.7 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.6 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.5 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.4 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.3 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.2 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.1 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.3.0 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.2.5 spec/fb_graph/auth/cookie_spec.rb
fb_graph-1.2.4 spec/fb_graph/auth/cookie_spec.rb