Sha256: 7c60a996d5d5655fadcee82e964f5f10fead84c0788187c0dfba4d43b6f8e4db

Contents?: true

Size: 474 Bytes

Versions: 75

Compression:

Stored size: 474 Bytes

Contents

require 'spec_helper'

describe FbGraph::BroadTargetingCategory, '.new' do
  it 'should setup all supported attributes' do
    attributes = {
      :id => 6002714401172,
      :name => "Baby Boomers",
      :parent_category => "Family Status"
    }

    btc = FbGraph::BroadTargetingCategory.new(attributes.delete(:id), attributes)
    btc.identifier.should == 6002714401172
    btc.name.should == "Baby Boomers"
    btc.parent_category.should == "Family Status"
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.16 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.15 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.14 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.13 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.12 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.11 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.10 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.9 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.8 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.7 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.6 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.5 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.4 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.3 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.2 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.1 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.7.0 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.6.7 spec/fb_graph/broad_targeting_category_spec.rb
fb_graph-2.6.6 spec/fb_graph/broad_targeting_category_spec.rb