Permalink
Browse files

Merge pull request #206 from blinqmedia/ad_previews_url_change

Update the AdPreviews connection
  • Loading branch information...
2 parents d94067e + f5b9135 commit e0d73f4721f9255bb01c47acd848827633bb3aa8 @micahwedemeyer micahwedemeyer committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/fb_graph/connections/ad_previews.rb
  2. +1 −1 spec/fb_graph/connections/ad_previews_spec.rb
@@ -2,7 +2,7 @@ module FbGraph
module Connections
module AdPreviews
def ad_previews(options = {})
- ad_previews = self.post options.merge(:method => 'get', :connection => :previews)
+ ad_previews = self.post options.merge(:method => 'get', :connection => :generatepreviews)
AdPreview.new ad_previews.merge(:access_token => options[:access_token] || self.access_token)
end
end
@@ -4,7 +4,7 @@
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
+ mock_graph :post, 'act_123456789/generatepreviews', '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)

0 comments on commit e0d73f4

Please sign in to comment.