Sha256: e3e48e44135499cab7590cd00e54c39cba258a40102829b404fe3924823626c6

Contents?: true

Size: 931 Bytes

Versions: 7

Compression:

Stored size: 931 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe FacebookAds::AdProductCatalog do
  # def test_all
  #   vcr do
  #     catalog = FacebookAds::AdProductCatalog.all.first
  #     assert_equal '197871307315718', catalog.id
  #     assert_equal 'Test', catalog.name
  #     assert_equal 'commerce', catalog.vertical
  #     assert_equal 1, catalog.product_count
  #     assert_equal 1, catalog.feed_count
  #   end
  # end
  #
  # def test_create
  #   vcr do
  #     catalog = FacebookAds::AdProductCatalog.create(name: 'Foo Bar')
  #     assert_equal 'Foo Bar', catalog.name
  #     assert_equal 'commerce', catalog.vertical
  #     assert_equal 0, catalog.product_count
  #     assert_equal 0, catalog.feed_count
  #     catalog = FacebookAds::AdProductCatalog.find(catalog.id)
  #     assert_equal true, catalog.destroy
  #     assert_nil FacebookAds::AdProductCatalog.find_by(name: 'Foo Bar')
  #   end
  # end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facebook_ads-0.6.11 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.10 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.9 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.7 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.6 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.5 spec/facebook_ads/ad_product_catalog_spec.rb
facebook_ads-0.6.4 spec/facebook_ads/ad_product_catalog_spec.rb