Sha256: 78609df2abfc7778112a1044cf168bdfda1fc513471546ddce642fa813b8ea98

Contents?: true

Size: 712 Bytes

Versions: 9

Compression:

Stored size: 712 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::TaggedPlaces do
  context 'included in User' do
    describe '#tagged_places' do
      let(:me) { FbGraph2::User.me('token') }
      it 'should return an Array of FbGraph2::PlaceTag' do
        tags = mock_graph :get, 'me/tagged_places', 'user/tagged_places', access_token: 'token' do
          me.tagged_places
        end
        tags.should be_instance_of FbGraph2::Edge
        tags.should_not be_blank
        tags.each do |tag|
          tag.should be_instance_of FbGraph2::PlaceTag
          tag.place.should be_instance_of FbGraph2::Place
          tag.place.location.should be_instance_of FbGraph2::Struct::Location
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-1.2.0 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-1.1.1 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-1.1.0 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-1.0.1 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-1.0.0 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-0.9.1 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-0.9.0 spec/fb_graph2/edge/tagged_places_spec.rb
fb_graph2-0.8.0 spec/fb_graph2/edge/tagged_places_spec.rb