Add (passing) test for 'bigger' image
Sean Collins
9 years ago
33 | 33 | { 'profile_image_url' => 'http://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_0_normal.png' } |
34 | 34 | ) |
35 | 35 | expect(subject.info[:image]).to eq('http://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_0.png') |
36 | end | |
37 | ||
38 | it 'should return bigger image when bigger size specified' do | |
39 | @options = { :image_size => 'bigger' } | |
40 | allow(subject).to receive(:raw_info).and_return( | |
41 | { 'profile_image_url' => 'http://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_0_normal.png' } | |
42 | ) | |
43 | expect(subject.info[:image]).to eq('http://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_0_bigger.png') | |
36 | 44 | end |
37 | 45 | |
38 | 46 | it 'should return secure image with size specified' do |