Sha256: c83704235106e043d0f2f4eed15dac17ae46b541a17d661655435b647d0d98fc
Contents?: true
Size: 915 Bytes
Versions: 79
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' describe FbGraph::Connections::Picture, '#picture' do context 'when included by FbGraph::User' do it 'should return image url' do FbGraph::User.new('matake').picture.should == File.join(FbGraph::ROOT_URL, 'matake/picture') end it 'should support size option' do [:square, :large].each do |size| FbGraph::User.new('matake').picture(size).should == File.join(FbGraph::ROOT_URL, "matake/picture?type=#{size}") end end end context 'when included by FbGraph::Page' do it 'should return image url' do FbGraph::Page.new('platform').picture.should == File.join(FbGraph::ROOT_URL, 'platform/picture') end it 'should support size option' do [:square, :large].each do |size| FbGraph::Page.new('platform').picture(size).should == File.join(FbGraph::ROOT_URL, "platform/picture?type=#{size}") end end end end
Version data entries
79 entries across 79 versions & 1 rubygems