Sha256: 1cfa9d0bea51c8db433835d6ac349d55ebf08f007a6267c21195eb4483e2af24

Contents?: true

Size: 874 Bytes

Versions: 75

Compression:

Stored size: 874 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::BroadTargetingCategories, '#broad_targeting_categories' do
  context 'when included by FbGraph::AdAccount' do
    context 'when access_token is given' do
      it 'should return broad_targeting_categories as FbGraph::BroadTargetingCategory' do
        mock_graph :get, 'act_22334455/broadtargetingcategories', 'ad_accounts/broad_targeting_categories/test_bct', :access_token => 'access_token' do
          bcts = FbGraph::AdAccount.new("act_22334455").broad_targeting_categories(:access_token => 'access_token')
          bcts.size.should == 3
          bcts.each {|x| x.should be_instance_of(FbGraph::BroadTargetingCategory)}
          bcts[0].identifier.should == 6002714885172
          bcts[0].name.should == "Cooking"
          bcts[0].parent_category.should == "Activities"
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.16 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.15 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.14 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.13 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.12 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.11 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.10 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.9 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.8 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.7 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.6 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.5 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.4 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.3 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.2 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.1 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.7.0 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.6.7 spec/fb_graph/connections/broad_targeting_categories_spec.rb
fb_graph-2.6.6 spec/fb_graph/connections/broad_targeting_categories_spec.rb