Sha256: fea43ac7c197a13a2947d03202fed30e066bff687ba07f7b5907fa5b11033554

Contents?: true

Size: 785 Bytes

Versions: 59

Compression:

Stored size: 785 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

59 entries across 59 versions & 1 rubygems

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