Sha256: 0235af643ec742ee392d1d1c146a33a0a60fa5d9ec625f3df8f1b672d455e9a5
Contents?: true
Size: 733 Bytes
Versions: 34
Compression:
Stored size: 733 Bytes
Contents
require File.join(File.dirname(__FILE__), '../../spec_helper') describe FbGraph::Connections::Maybe, '#maybe' do before(:all) do fake_json(:get, 'smartday/maybe?access_token=access_token', 'events/maybe/smartday_private') end it 'should return maybe users as FbGraph::User' do users = FbGraph::Event.new('smartday', :access_token => 'access_token').maybe users.each do |user| user.should be_instance_of(FbGraph::User) end end end describe FbGraph::Connections::Maybe, '#maybe!' do before do fake_json(:post, '12345/maybe', 'events/maybe/post_with_valid_access_token') end it 'should return true' do FbGraph::Event.new('12345', :access_token => 'valid').maybe!.should be_true end end
Version data entries
34 entries across 34 versions & 2 rubygems