Sha256: eed8ae68a0d1116018035d6dd370154d46b5b0b1ec5fc9f81183ba95882abadf
Contents?: true
Size: 690 Bytes
Versions: 5
Compression:
Stored size: 690 Bytes
Contents
require 'test_helper' # rake test TEST=test/ad_account_test.rb class AdAccountTest < BaseTest def test_all vcr do accounts = FacebookAds::AdAccount.all assert_equal 10, accounts.length end end def test_find_by vcr do account = FacebookAds::AdAccount.find_by(name: 'ReFuel4') assert_equal 'ReFuel4', account.name end end def test_applications vcr do account = FacebookAds::AdAccount.find_by(name: 'ReFuel4') apps = account.applications assert !apps['data'].find { |app| app['name'] == 'Tophatter' }.nil? assert !apps['data'].find { |app| app['name'] == 'Ruby - Jewelry Shopping Deals' }.nil? end end end
Version data entries
5 entries across 5 versions & 1 rubygems