Sha256: 5923b8af1f3c8660d9e30e3fe95b273232277b8887726f46de603e57bfb1f4a6
Contents?: true
Size: 898 Bytes
Versions: 5
Compression:
Stored size: 898 Bytes
Contents
require 'test_helper' # rake test TEST=test/ad_product_catalog_test.rb class AdProductCatalogTest < BaseTest 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
5 entries across 5 versions & 1 rubygems