Sha256: 01d5bdb0444309d79f5fb69eb3cf10805d06100e99a6a8a34e17844afd600d06
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
class FacebookRestAPINoAccessTokenTest < Test::Unit::TestCase describe "Koala RestAPI without an access token" do before :each do @graph = Koala::Facebook::RestAPI.new end # FQL it "should be able to access public information via FQL" do @result = @graph.fql_query('select first_name from user where uid = 216743') @result.size.should == 1 @result.first['first_name'].should == 'Chris' end it "should not be able to access protected information via FQL" do lambda { @graph.fql_query("select read_stream from permissions where uid = 216743") }.should raise_error(Koala::Facebook::APIError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koala-0.6.0 | spec/koala/facebook_rest_api_no_access_token_test.rb |