Sha256: cbab971bada36ba891b6cd18058beaa70df5d3bcd89b2d784bc670b6b369a238

Contents?: true

Size: 686 Bytes

Versions: 7

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

# rspec spec/facebook_ads/facebook_ads_spec.rb
describe FacebookAds do
  describe '#base_uri' do
    it 'is currently v2.9' do
      expect(FacebookAds.base_uri.include?('2.9')).to be_truthy
    end

    it 'can be set to v2.10' do
      FacebookAds.base_uri = 'https://graph.facebook.com/v2.10'
      expect(FacebookAds.base_uri.include?('2.10')).to be_truthy
    end
  end

  describe '#api_version' do
    it 'is currently 2.9' do
      expect(FacebookAds.api_version).to eq '2.9'
    end

    it 'can be set to 2.10' do
      FacebookAds.api_version = '2.10'
      expect(FacebookAds.api_version).to eq '2.10'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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