mirror of
https://github.com/simi/omniauth-facebook.git
synced 2022-11-09 12:32:45 -05:00
Make tests Ruby 1.8 compatible.
This commit is contained in:
parent
ea5b7064d3
commit
062d547148
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ class InfoTest < StrategyTestCase
|
|||
@options = { :image_size => { :width => 123, :height => 987 } }
|
||||
raw_info = { 'name' => 'Fred Smith', 'id' => '321' }
|
||||
strategy.stubs(:raw_info).returns(raw_info)
|
||||
assert_equal 'http://graph.facebook.com/321/picture?width=123&height=987', strategy.info['image']
|
||||
assert_match 'width=123', strategy.info['image']
|
||||
assert_match 'height=987', strategy.info['image']
|
||||
assert_match 'http://graph.facebook.com/321/picture?', strategy.info['image']
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue