Sha256: 0064bafaf8ff47166483e44b2f499eb680b14d8287aa4c0f408a25b2eda79b75
Contents?: true
Size: 502 Bytes
Versions: 14
Compression:
Stored size: 502 Bytes
Contents
require 'helper' describe Twitter::ProfileBanner do describe '#sizes' do it 'returns a hash of Sizes when sizes is set' do sizes = Twitter::ProfileBanner.new(:sizes => {:small => {:h => 226, :w => 340, :resize => 'fit'}, :large => {:h => 466, :w => 700, :resize => 'fit'}, :medium => {:h => 399, :w => 600, :resize => 'fit'}, :thumb => {:h => 150, :w => 150, :resize => 'crop'}}).sizes expect(sizes).to be_a Hash expect(sizes[:small]).to be_a Twitter::Size end end end
Version data entries
14 entries across 14 versions & 1 rubygems