Sha256: 5d884fe9e6860304c58a93f2cd0f12153e65d8942af8ddefad91ac871a6e95b5
Contents?: true
Size: 956 Bytes
Versions: 72
Compression:
Stored size: 956 Bytes
Contents
require File.join(File.dirname(__FILE__), '../../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
72 entries across 72 versions & 2 rubygems