add test for image_url with versioning
frausto
9 years ago
101 | 101 | raw_info = { 'name' => 'Fred Smith', 'id' => '321' } |
102 | 102 | strategy.stubs(:raw_info).returns(raw_info) |
103 | 103 | assert_equal 'https://graph.facebook.com/321/picture', strategy.info['image'] |
104 | end | |
105 | ||
106 | test 'returns the image_url based of the client site' do | |
107 | @options = { :secure_image_url => true, :client_options => {:site => "https://blah.facebook.com/v2.2"}} | |
108 | raw_info = { 'name' => 'Fred Smith', 'id' => '321' } | |
109 | strategy.stubs(:raw_info).returns(raw_info) | |
110 | assert_equal 'https://blah.facebook.com/v2.2/321/picture', strategy.info['image'] | |
104 | 111 | end |
105 | 112 | |
106 | 113 | test 'returns the image with size specified in the `image_size` option' do |