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

Version Path
twitter-5.11.0 spec/twitter/profile_banner_spec.rb
twitter-5.10.0 spec/twitter/profile_banner_spec.rb
twitter-5.9.0 spec/twitter/profile_banner_spec.rb
twitter-5.8.0 spec/twitter/profile_banner_spec.rb
twitter-5.7.1 spec/twitter/profile_banner_spec.rb
twitter-5.7.0 spec/twitter/profile_banner_spec.rb
twitter-5.6.0 spec/twitter/profile_banner_spec.rb
twitter-5.5.1 spec/twitter/profile_banner_spec.rb
twitter-5.5.0 spec/twitter/profile_banner_spec.rb
twitter-5.4.1 spec/twitter/profile_banner_spec.rb
twitter-5.4.0 spec/twitter/profile_banner_spec.rb
twitter-5.3.1 spec/twitter/profile_banner_spec.rb
twitter-5.3.0 spec/twitter/profile_banner_spec.rb
twitter-5.2.0 spec/twitter/profile_banner_spec.rb