Codebase list ruby-omniauth-twitter / a78957b
Add (passing) test for 'bigger' image Sean Collins 9 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3333 { 'profile_image_url' => 'http://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_0_normal.png' }
3434 )
3535 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')
3644 end
3745
3846 it 'should return secure image with size specified' do