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

Version Path
fb_graph-1.1.6 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.5 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.4 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.3 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.2 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.1 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.1.0 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.7 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.6 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.5 spec/fb_graph/connections/maybe_spec.rb
palidanx-fb_graph-1.0.4 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.4 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.3 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.2 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.1 spec/fb_graph/connections/maybe_spec.rb
fb_graph-1.0.0 spec/fb_graph/connections/maybe_spec.rb
fb_graph-0.8.0 spec/fb_graph/connections/maybe_spec.rb
fb_graph-0.7.3 spec/fb_graph/connections/maybe_spec.rb
fb_graph-0.7.2 spec/fb_graph/connections/maybe_spec.rb
fb_graph-0.7.1 spec/fb_graph/connections/maybe_spec.rb