Sha256: aefe45e940bf03400421591397c4592bec63f49e93ce04bcfcc6aa228d9a88ca

Contents?: true

Size: 765 Bytes

Versions: 17

Compression:

Stored size: 765 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::ReachEstimates, '#reach_estimates' do
  context 'when included by FbGraph::AdAccount' do
    context 'when access_token is given' do
      it 'should return reach_estimates as FbGraph::ReachEstimate' do
        mock_graph :get, 'act_123456789/reachestimate', 'ad_accounts/reach_estimates/test_reach_estimates', :params => {:targeting_spec => {:country => ["US"]}.to_json}, :access_token => 'access_token' do
          ad_account = FbGraph::AdAccount.new('act_123456789')
          reach_estimate = ad_account.reach_estimates(:access_token => 'access_token', :targeting_spec => {:country => ["US"]})
          reach_estimate.should be_instance_of(FbGraph::ReachEstimate)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fb_graph-2.2.6 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.5 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.4 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.3 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.2 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.1 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.0 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.0.beta spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.0.alpha2 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.2.0.alpha spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.13 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.12 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.11 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.10 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.9 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.8 spec/fb_graph/connections/reach_estimates_spec.rb
fb_graph-2.1.7 spec/fb_graph/connections/reach_estimates_spec.rb