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