Sha256: bc0831751d9027d23ee298e6053e176bc25a0ff006142b77274cbf0b68149a69
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' describe FbGraph::Connections::AdPreviews, '#ad_previews' do context 'when included by FbGraph::AdAccount' do context 'when access_token is given' do it 'should return ad_preview as FbGraph::AdPreview' do mock_graph :post, 'act_123456789/previews', 'ad_accounts/previews/test_ad_previews' do ad_account = FbGraph::AdAccount.new('act_123456789', :access_token => 'access_token') ad_preview = ad_account.ad_previews(:access_token => 'access_token', :creative => {}) ad_preview.should be_instance_of(FbGraph::AdPreview) ad_preview.preview_data[:body].should == '<h1>hello world</h1>' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-2.4.4 | spec/fb_graph/connections/ad_previews_spec.rb |
fb_graph-2.4.3 | spec/fb_graph/connections/ad_previews_spec.rb |