Sha256: 531859c47050c21226ea2fc4c2965ccf57c02a41c21e6a7fe3a42e8edf45efea

Contents?: true

Size: 511 Bytes

Versions: 25

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe FbGraph2::TaggedProfile do
  describe '.initialize' do
    {
      user: FbGraph2::User,
      page: FbGraph2::Page,
      event: FbGraph2::Event,
      application: FbGraph2::App,
      unknown: FbGraph2::Node
    }.each do |type, klass|
      context "when type=#{type}" do
        it "should return instances of the #{klass}" do
          tag = FbGraph2::TaggedProfile.new(1, type: type.to_s)
          expect(tag.object).to be_a klass
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-1.2.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-1.1.1 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-1.1.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-1.0.1 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-1.0.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.9.1 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.9.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.8.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.9 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.8 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.7 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.6 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.5 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.4 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.3 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.2 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.1 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.7.0 spec/fb_graph2/tagged_profile_spec.rb
fb_graph2-0.6.2 spec/fb_graph2/tagged_profile_spec.rb